On Jul 11, 2008, at 6:32 AM, Brendan Arnold wrote:

>
> Hi there,
>
> Q: How do you evaluate or convert a surd value generated by SAGE into
> numerical output?
>
> A: Use the .n() method. i.e.
>
> sage: sin(10)
> sin(10)
> sage: sin(10).n()
> -0.544021110889370
>
> This bugged me for ages when trying to export data to another program.
>
> Perhaps this should be made clearer in the tutorial? (its only used
> once and as an aside)

Yes, for sure.

Another option is to do

sage: sin(10.0)
-0.544021110889370
sage: sin(10.000000000000000000000000000000000000000000)
-0.54402111088936981340474766185137728168364301

- Robert



--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to