Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SAGE digits!!!

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()
  a = p.real_roots();

How can I make p.real_roots() in 6 digits??
.n(digits=6) DONT work!!!

SAGE digits!!!

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()
  a = p.real_roots();

How can I make p.real_roots() in 6 digits??
.n(digits=6) DONT work!!!

click to hide/show revision 3
retagged

SAGE digits!!!

How can I make p.real_roots() in 6 digits??
.n(digits=6) DONT work!!!