[sage-devel] Re: --random-seed and consistent doctest results

2022-04-03 Thread dmo...@deductivepress.ca
The fact that the doctest fails with some random seeds means there is a bug. (This particular bug is tracked at trac ticket #32773 .) Ever since trac ticket #29935 was merged, the test suite chooses the random se

[sage-devel] --random-seed and consistent doctest results

2022-04-03 Thread Steven Trogdon
With 9.6.beta7 I have the following failure when running the testsuite sage -t --long --warn-long 96.7 --random-seed=323793429833434243810534467855837341563 src/sage/schemes/toric/sheaf/klyachko.py ** File "src/sage/schemes/tori

[sage-devel] Re: Something.expand() is 0 but factor() is not zero

2022-04-03 Thread dmo...@deductivepress.ca
I think this is indeed a bug, so thanks for reporting it. My impression from a quick look at the code is that sagemath expands the expression into a polynomial (a linear combination of monomials) before trying to factor it. If the expansion has only a single term (a constant times a monomial),

[sage-devel] Re: Something.expand() is 0 but factor() is not zero

2022-04-03 Thread a.simpl...@gmail.com
I meant to say that f.expand() gives the correct answer. To see why, factor out the common factors (x-y)(y-z)(z-x). Once you did so, the rest is ( (x-y) + (y-z) + (z-x) ) and so I expect f.factor() returns 0. The statement "the given expression cannot be factorized further" seems weird to me. --

Re: [sage-devel] Regarding contributing in enhancement ticket 7231

2022-04-03 Thread dmo...@deductivepress.ca
I added a more specific comment on the trac ticket . If there is any further discussion, it should probably happen on the ticket. On Sunday, April 3, 2022 at 7:24:36 AM UTC-6 dim...@gmail.com wrote: > On Sat, Apr 2, 2022 at 12:00 PM Manika Sharma > wrote:

[sage-devel] Re: https://wiki.sagemath.org/ReleaseTours/sage-9.6

2022-04-03 Thread Matthias Koeppe
Here's the current table of contents. Lots of items still need fleshing out. Please help! 1. User interface, plotting and graphics 1. JupyterLab 3.3

[sage-devel] sagemath_doc_html being made twice

2022-04-03 Thread G. M.-S.
Hoping this is not a stupid question, I have noticed that make includes make --no-print-directory sagemath_doc_html-SAGE_DOCS-no-deps So I wonder why make ptestlong does exactly the same again. Looking at sagemath_doc_html-none.log I see no difference between the two. The reason for my asking is

[sage-devel] Re: Something.expand() is 0 but factor() is not zero

2022-04-03 Thread Emmanuel Charpentier
sage: var("x, y, z") (x, y, z) sage: Ex = (x-y)^2*(y-z)*(z-x) + (y-z)^2*(z-x)*(x-y) + (z-x)^2*(x-y)*(y-z) sage: Ex -(x - y)^2*(x - z)*(y - z) + (x - y)*(x - z)^2*(y - z) - (x - y)*(x - z)*(y - z)^2 sage: Ex.expand() 0 sage: Ex.factor() -(x - y)^2*(x - z)*(y - z) + (x - y)*(x - z)^2*(y - z) - (x

Re: [sage-devel] Regarding contributing in enhancement ticket 7231

2022-04-03 Thread Dima Pasechnik
On Sat, Apr 2, 2022 at 12:00 PM Manika Sharma wrote: > > Hello, > > I want to contribute to the ticket: https://trac.sagemath.org/ticket/7231, > Cryptanalysis of the Vigenere cipher. > > The input shall be the the cipher text, and the outputs shall be the key and > deciphered text. > > Please le

[sage-devel] Re: Something.expand() is 0 but factor() is not zero

2022-04-03 Thread Adarsh Kishore
I checked this on my SageMath v9.6.beta5 on Ubuntu 20.04 LTS, and it checks out [image: Screenshot from 2022-04-03 14-58-46.png] On Sunday, April 3, 2022 at 2:57:35 PM UTC+5:30 Adarsh Kishore wrote: > By the way, f.expand() is not wrong. The expression is identically equal > to 0 for all value

[sage-devel] Re: Something.expand() is 0 but factor() is not zero

2022-04-03 Thread Adarsh Kishore
Which version of Sage are you using? And on which platform? On Sunday, April 3, 2022 at 10:44:59 AM UTC+5:30 a.simpl...@gmail.com wrote: > The following code > > > var("z y z") > > f = (x-y)^2*(y-z)*(z-x) + (y-z)^2*(z-x)*(x-y) + (z-x)^2*(x-y)*(y-z) > > f.expand() > > outputs 0. > But > > f.factor