First time here? Check out the FAQ!
answered 2011-04-05 12:38:06 +0100
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();