#11646: Significance arithmetic
--------------------------------+-------------------------------------------
Reporter: eviatarbach | Owner: AlexGhitza
Type: enhancement | Status: new
Priority: major | Milestone: sage-feature
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Old description:
> I am working on implementing significance arithmetic in Sage (i.e.,
> maintaining significant digits under arithmetic operations). This can be
> accomplished through a special structure which, upon instantiation,
> determines the amount of sig. figs and coerces into a RealField.
>
> For example,
>
> {{{
> sage: SF('787') * SF('3.0')
> 2400.
> }}}
New description:
I am working on implementing significance arithmetic in Sage (i.e.,
maintaining significant digits under arithmetic operations). This can be
accomplished through a special structure which, upon instantiation,
determines the amount of sig. figs and coerces into a !RealField.
For example,
{{{
sage: SF('787') * SF('3.0')
2400.
}}}
--
Comment(by leif):
Shouldn't the result display as something like `2.4 * 10^3` (`2.4e3`) or
`24 * 10^2` (`24e2`)?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11646#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.