SAGE:
sage: s=solve(3*x^3-9*x+10==0,x,solution_dict=True)
sage: [n(t[x]) for t in s]
[1.06780542232902 - 1.84949324407141*I,
0.0277635108030695 + 1.24902476648341*I,
-1.09556893313209 + 0.600468477588001*I]
# WRONG!
sage: s=solve(3*x^3-9*x+10==0,x,
solution_dict=True,to_poly_solve='force')
sage: [n(t[x]) for t in s]
[1.06780542232902 - 0.648556288895405*I,
-2.13561076604555,
1.06780538302277 + 0.648556231003039*I]
# POOR PRECISION
MAXIMA:
sage: maxima_console()
(%i1) expand(float(solve(3*x^3-9*x+10=0,x)));
(%o1) [x = 1.067805422329021 - .6485562888954052 %i,
x = .6485562888954052 %i + 1.067805422329021,
x = - 2.135610844658043]
#O.K.
Andrzej Chrzeszczyk
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org