Hi, On 08/23/2010 03:42 PM, robin hankin wrote: > I tried this: > > roots = solve(x^3+10*x^2+11*x+8==0,x) <SNIP> > > The best I can do is > > N(roots[1].rhs()) > > but this is just one at a time. How do I make N() operate on all of roots?
You may like for r in roots: print N(r.rhs()) or [N(r.rhs()) for r in roots] Cheers, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org