Re: [sage-devel] Unify error for trying to invert non-invertible elements

2024-02-05 Thread Dave Morris
-1 from me. Looking at just a few uncovered some that I think are definitely not ArithmeticError. Examples: There is an occurrence of ValueError('{} is not invertible') in the lift_isometry method of cliffordalgebra.py. Lifting an isometry is clearly not an arithmetic operation.

Re: [sage-devel] Definite Integral wrong

2020-08-05 Thread Dave Morris
I agree with the general analysis, but I think the statement "Any answer that supplies only one answer is wrong." goes too far. It may be the case that sage works inherently in the complex domain, and is unable to understand that elementary calculus and certain other fields want to remain in

[sage-devel] Re: a problem with is_line_graph

2020-07-24 Thread Dave Morris
I think the bugfix in trac ticket #29740 fixes this problem, so the error should go away if you upgrade to the latest beta. Please report again if it doesn't! (Your example works fine for me in 9.2.beta5.) On Friday, July 24, 2020 at 3:45:25 PM UTC-6,

Re: [sage-devel] continued_fraction seems to leak memory

2020-07-23 Thread Dave Morris
> > for i in [1,..,2]: > if i%100 == 0: > print(i); > print(get_memory_usage()); > C = continued_fraction(pi^i); > C.denominator(100); > > > > > > > > > On Thursday, July 23, 2020 at 4:27:46 PM UTC-5, Dave Morris w

Re: [sage-devel] continued_fraction seems to leak memory

2020-07-23 Thread Dave Morris
Is this the issue that was reported in Trac #27185 (defect: sqrt memory leak)? On Thursday, July 23, 2020 at 3:12:07 PM UTC-6, Spencer Dembner wrote: > > Yup- what you wrote gives me the same result as far as climbing memory > usage. > > On Thursday,

Re: [sage-devel] Error in Trac reports

2020-07-05 Thread Dave Morris
Report "{93} Active tickets I participated in (by time) (copy) " does not include the closed tickets (for me, at least). I found this in the "Available Reports" link on trac. On Sunday, July 5, 2020 at 4:47:40 PM UTC-6, Dima Pasechnik wrote: > > > > On Sun,

[sage-devel] Re: [Bug] Possible Bug in FrobeniusMap for ntl finite fields of characteristic 2

2020-07-03 Thread Dave Morris
This bug is discussed in trac ticket #28617 (which recently received a patch). -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an

[sage-devel] Re: Sage 9.1 - Possible bug in how matrices are treated in characteristic 2

2020-06-06 Thread Dave Morris
Thanks for your detailed report. I confirm that your code crashes sage, so I opened trac ticket #29181 to address this issue. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this

Re: [sage-devel] bug in matrix solve over inexact coefficients?

2020-05-23 Thread Dave Morris
ll fields. I have > opened #29729 <https://trac.sagemath.org/ticket/29729> for this. For > general inexact rings though, the result cannot be verified, so it would > not make sense to do the check by default. > > > Am Samstag, 23. Mai 2020 07:15:45 UTC+2 schrieb Dave

Re: [sage-devel] bug in matrix solve over inexact coefficients?

2020-05-22 Thread Dave Morris
>From the documentation at https://www.mathworks.com/help/matlab/ref/mldivide.html, it appears to me that MATLAB gives a warning: "Warning: Matrix is close to singular or badly scaled. Results may be inaccurate." That seems to me to be a better default behavior than what sage is doing now,

[sage-devel] Re: bug in matrix solve over inexact coefficients?

2020-05-21 Thread Dave Morris
This is the expected behavior after trac #12406 . The OUTPUT section of the docstring of solve_right says "... If the system is not square or does not have full rank, then a solution is attempted via other means. For example, over "RDF" or "CDF" a

[sage-devel] Re: Quadratic Residual Bug?

2020-05-07 Thread Dave Morris
Here is a simple function that you could use for input of reasonable size. But this discussion is no longer about sagemath development, so please ask further questions about this at ask.sagemath.org def is_quadratic_residue(a,n): return(mod(a,n).sqrt() in ZZ) On Wednesday, May 6, 2020 at

[sage-devel] Re: Quadratic Residual Bug?

2020-05-06 Thread Dave Morris
I don't think this is evidence of a bug, because t2 is not prime. It is only when n is is an odd prime that kronecker(a,n) tells you whether a is a quadratic residue. See the wikipedia article on Kronecker symbol . On Wednesday, May 6, 2020 at

[sage-devel] Re: Issue with quick start

2017-12-01 Thread dave
For the sake of clarity, definite points can be made to unequivocally illustrate the need to take the very simple step and *be* *consistent*, by combing over this system and using the term "MATH" : Using the full word "mathematics" is a noble suggestion, and even acceptable to a point, however