| 1 | initial version |
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();
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.