On 03/03/2010 11:41 AM, Oscar Castillo-Felisola wrote:
Hi everybody!

I'd like to know if there is a way of say Sage to return a result in
scientific notation by default, as well as controlling the number of
significant digits.


There is a very big patch on trac [1] that improves the options for printing real numbers quite a bit (on a per-field basis, you can specify rounding of the last few digits, whether to show zeroes at the end of the number, and scientific notation settings). The patch also adds a lot of doctests to the RealField code.

And the patch is up for review :).

The patch doesn't make it possible to control the number of significant digits, but it does provide a nice framework for adding that option too.

Thanks,

Jason

[1] http://trac.sagemath.org/sage_trac/ticket/7682

--
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

Reply via email to