[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-28 Thread Emmanuel Charpentier
What about : sage: %time t = -2/3*((sqrt(3)*sqrt((675*(88/30375*I*sqrt(79)*sqrt(3) + 1328/337 : 5)^(2/3) + 552*(88/30375*I*sqrt(79)*sqrt(3) + 1328/3375)^(1/3) + 364)/(88/3 : 0375*I*sqrt(79)*sqrt(3) + 1328/3375)^(1/3)) - 45*sqrt(-(88/30375*I*sqrt(79) : *sqrt(3) + 1328/3375)^(1/3) -

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-21 Thread Emmanuel Charpentier
For the record : you shouldn't add a float (0.01) to an exact number (your root) : it complexifies and slows your computations to no avail. E. g. : sage: %time t = -2/3*((sqrt(3)*sqrt((675*(88/30375*I*sqrt(79)*sqrt(3) + 1328/337 : 5)^(2/3) + 552*(88/30375*I*sqrt(79)*sqrt(3) + 1328/3375)^(1/

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread John H Palmieri
Or range(abs(t))? Then if there is some numerical noise leading to a tiny imaginary part (your t might be evaluated to 2.573037896825689 - 4.365411232224172e-17*I for example), abs(t) won't care. On Wednesday, February 20, 2019 at 10:42:32 AM UTC-8, John H Palmieri wrote: > > How about range(

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread John H Palmieri
How about range(0, RR(t))? On Wednesday, February 20, 2019 at 10:11:14 AM UTC-8, Michael Beeson wrote: > > Oh, and range(0,n(t)) also crashes. > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop recei

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread Michael Beeson
Oh, and range(0,n(t)) also crashes. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send ema

[sage-support] Re: Solution

2009-08-20 Thread David Joyner
Perhaps you could convert this into a system of linear equations then use the solve command? On Thu, Aug 20, 2009 at 2:39 PM, Santanu Sarkar wrote: > Hi, >  How  can  I find the solution x1,...,z3 in SAGE   where > A= [x1,x2,x3, >   y1,y2,y3, >    z1,z2,z3]  is a (3,3) matrix which satisf

[sage-support] Re: Solution

2009-08-20 Thread William Stein
On Thu, Aug 20, 2009 at 11:39 AM, Santanu Sarkar wrote: > Hi, >  How  can  I find the solution x1,...,z3 in SAGE   where > A= [x1,x2,x3, >   y1,y2,y3, >    z1,z2,z3]  is a (3,3) matrix which satisfy AB=C > where B=[1,2 >     3,4, >     5,6]  a (3,2) matrix  and > C=