Unfortunately, N is the name of the built-in numerical evaluation function:
sage: pi pi sage: N(pi) 3.14159265358979 sage: N(pi, digits=20) 3.1415926535897932385 On Apr 23, 11:25 am, clodemil <[email protected]> wrote: > Many thanks > > On Apr 23, 4:13 pm, "D. S. McNeil" <[email protected]> wrote: > > > (3) Avoid "n" as a variable. > > I promise to!! > > > (4) Choose something else -- nn, or nap, or whatever -- and use it > > instead ("nn = numerical_approx", and then "nn(3.2445,digits=2)". > > N does the job > > > It's more Pythonic to write something like > > for x in mesuresF, : > print x[-1]," ",x[0]," ",x[1:4] > > does the job beautifully > > > "Flat is better than nested", > > Recorded as mantra > > Thanks again. > > Claude -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
