SAGE digits!!!
How can I make p.real_roots() in 6 digits??
.n(digits=6) DONT work!!!
How can I make p.real_roots() in 6 digits??
.n(digits=6) DONT work!!!
R.<x> = RealField(100)[];
a = [];
for n in range (1,11):
p = gen_legendre_P(n, 0, x)
print "n =", n
print "Nultocke: ", [p.real_roots()[i].n(digits=6) for i in range(len(p.real_roots()))]
a = p.real_roots();
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-04-05 12:29:16 +0100
Seen: 962 times
Last updated: Apr 06 '11
Numerically find all roots in an interval
Inaccurate numerical result for roots of square equation
Finding all the roots at once numerically
obtaining all numerical roots of a function in an interval
Numeric multivariable ode solver in Sage?
problems with symbolic integration and then numerical evaluating
Numerical integration in a function