#13634: Fix to output of scientific notation for real interval field
---------------------------------------+------------------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.5
Component: misc | Resolution:
Keywords: real interval field | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Travis Scrimshaw | Merged in:
Dependencies: | Stopgaps:
---------------------------------------+------------------------------------
Description changed by tscrim:
Old description:
> Currently if you set scientific notation for the real interval field, it
> does not print in scientific notation.
> {{{
> sage: RIF.scientific_notation(True)
> sage: RIF(0.025)
> 0.025000000000000002?
> sage: RIF.scientific_notation()
> True
> sage: RIF(0.025).str(no_sci=False)
> '2.5000000000000002?e-2'
> }}}
> This is caused by not checking when `no_sci` option is `None` (and then
> checking the parent). After patch:
> {{{
> sage: RIF(0.025)
> 0.025000000000000002?
> sage: RIF.scientific_notation(True)
> sage: RIF(0.025)
> 2.5000000000000002?e-2
> }}}
New description:
Currently if you set scientific notation for the real interval field, it
does not print in scientific notation.
{{{
sage: RIF.scientific_notation(True)
sage: RIF(0.025)
0.025000000000000002?
sage: RIF.scientific_notation()
True
sage: RIF(0.025)
0.025000000000000002?
sage: RIF(0.025).str(no_sci=False)
'2.5000000000000002?e-2'
}}}
This is caused by not checking when `no_sci` option is `None` (and then
checking the parent). After patch:
{{{
sage: RIF(0.025)
0.025000000000000002?
sage: RIF.scientific_notation(True)
sage: RIF(0.025)
2.5000000000000002?e-2
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13634#comment:2>
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.