[sage-support] limitations of "solve"?

2023-11-28 Thread Fernando Q. Gouvea
Yesterday I was demonstrating to my calculus class Sage's ability to implement the method of Lagrange multipliers. I used a standard example, putting the following code into SageMath Cell: var('x,y,l') f(x,y)=10*x^(1/3)*y^(2/3) g(x,y)=5*x-6*y fx=diff(f,x) fy=diff(f,y) gx=diff(g,x) gy=diff(g,y)

[sage-support] Re: limitations of "solve"?

2023-11-28 Thread Eric Gourgoulhon
Hi, I've also noticed two days ago that https://sagecell.sagemath.org/ is very slow (actually does not terminate) even on elementary operations. Maybe there is a problem with the server at the moment... Eric. Le mardi 28 novembre 2023 à 16:36:30 UTC+1, Fernando Q. Gouvea a écrit : >

[sage-support] Re: limitations of "solve"?

2023-11-28 Thread Fernando Q. Gouvea
Answering part of my question: it seems that sympy and maxima have different attitudes towards fractional powers of negative numbers, which may be the source of the problem. If I change to g(x,y)=x^2+6*y then "solve" has no problem finding x=2*sqrt(6), y=16. Fernando On 11/28/2023 10:36

[sage-support] Re: limitations of "solve"?

2023-11-28 Thread kcrisman
Answering part of my question: it seems that sympy and maxima have different attitudes towards fractional powers of negative numbers, which may be the source of the problem. Yes. Maxima's attitude is that the square root of negative one is an expression which might have multiple values,

Re: [sage-support] Re: limitations of "solve"?

2023-11-28 Thread Oscar Benjamin
On Tue, 28 Nov 2023 at 17:25, kcrisman wrote: > > Answering part of my question: it seems that sympy and maxima have > different attitudes towards fractional powers of negative numbers, which > may be the source of the problem. > > Yes. Maxima's attitude is that the square root of negative one

Re: [sage-support] Re: limitations of "solve"?

2023-11-28 Thread Dima Pasechnik
one should not be using sagecell.sagemath.org server for teaching, it's not scaling well (compared to cocalc.com, say) under load. unleashing undergraduates to compute on it surely gets things very slow there On 28 November 2023 15:45:33 GMT, Eric Gourgoulhon wrote: >Hi, > >I've also