[sage-devel] morphisms between multivariate polynomial rings

2024-02-10 Thread 'Martin R' via sage-devel
I was a bit surprised about the following: sage: k = ZZ["q"].hom(QQ["q"]) sage: isinstance(k, Morphism) True sage: m = ZZ["q,t"].hom(QQ["q,t"]) sage: isinstance(m, Morphism) False However, I vaguely recall a discussion about morphisms between multivariate polynomial rings being problematic. Doe

[sage-devel] Problem extracting base B fractional digits of a number

2024-02-10 Thread Georgi Guninski
Given SR constant, I want to extract the first L base B digits of the fractional part. So far the best solution I found is: floor((SR(expression)*B**L).numerical_approx(digits=L)).digits(B) Can I do better? Why the following approach fails numerically: ``` def base_B_digits(A, B,prot=False):

Re: [sage-devel] Problem extracting base B fractional digits of a number

2024-02-10 Thread Gareth Ma
I assume you should use floor division to preserve accuracy. As a numerical example, say you want the first 100 /decimal/ digits of 3 / 173. That's the same as floor(10^100 * 3 / 173). In [105]: from decimal import Decimal, getcontext ...: getcontext().prec = 300 ...: print(10**100 *

[sage-devel] Re: Google Summer of Code: Organization application deadline Feb 6!

2024-02-10 Thread mmarco
One question, Matthias: I see that you have proposed a project involving integration with proof assistants/theorem provers. Just out of curiosity: how do you envision such integration? El martes, 6 de febrero de 2024 a las 6:56:44 UTC+1, Matthias Koeppe escribió: > Great, thanks a lot, Travis

[sage-devel] Re: Google Summer of Code: Organization application deadline Feb 6!

2024-02-10 Thread Matthias Koeppe
Hi Miguel, There's of course a large scope of work that can be meaningful. I'll just mention two directions, but I'll be happy to have a broader and/or more detailed conversation. 1. For interactive proof assistants/theorem provers such as LEAN, it can be powerful to make CAS capabilities availa

[sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread Matthias Koeppe
We added the packages as optional "pip" packages (see https://deploy-livedoc--sagemath.netlify.app/html/en/developer/packaging#package-types for the terminology), each more than 1 year ago. - https://deploy-livedoc--sagemath.netlify.app/html/en/reference/spkg/pytest#spkg-pytest (added in 20

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread Dima Pasechnik
On Sat, Feb 10, 2024 at 10:18 PM Matthias Koeppe wrote: > > We added the packages as optional "pip" packages (see > https://deploy-livedoc--sagemath.netlify.app/html/en/developer/packaging#package-types > for the terminology), each more than 1 year ago. > > - > https://deploy-livedoc--sagemath.

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread Matthias Koeppe
On Saturday, February 10, 2024 at 2:56:57 PM UTC-8 Dima Pasechnik wrote: yes, make them standard, but keep them pip packages (i.e. no version pinning, no tarballs/checksums). By current policy, "standard" packages cannot be "pip" packages. This is documented in https://deploy-livedoc--sagemat

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread Dima Pasechnik
On 10 February 2024 23:40:59 GMT, Matthias Koeppe wrote: >On Saturday, February 10, 2024 at 2:56:57 PM UTC-8 Dima Pasechnik wrote: > >yes, make them standard, but keep them pip packages (i.e. no version >pinning, no tarballs/checksums). > > >By current policy, "standard" packages cannot be "p

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread Matthias Koeppe
On Saturday, February 10, 2024 at 4:09:32 PM UTC-8 Dima Pasechnik wrote: How about we initiate a vote on letting standard packages be pip packages? You can make such a change of policy your project, but the present vote will not wait for it. -- You received this message because you are subscr

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread William Stein
Hi Dima, I believe I'm the person who introduced that long standing policy. It was indeed motivated by a significant paying customer's requirement to install Sage entirely from source, and without an external network. I believe no such customers have supported the Sage project for about a decade,

Re: [sage-devel] Proposal: Make pytest, pytest_xdist, pytest_mock, python_build standard packages

2024-02-10 Thread William Stein
(Also, thanks everyone for so far taking extra effort to be civil when discussing the topic of vendored dependencies, which I know touches a nerve for people.) On Sat, Feb 10, 2024 at 4:36 PM William Stein wrote: > > Hi Dima, > > I believe I'm the person who introduced that long standing policy.