#9261: RealIntervalField: enable option style='bracket'
--------------------------------+-------------------------------------------
Reporter: zimmerma | Owner: AlexGhitza
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.5.2
Component: basic arithmetic | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by cwitty):
I don't like the idea of putting the print style in the parent. (I think
the current sci_not is a design error that shouldn't be perpetuated.)
One problem is that if you have objects like {{{RealIntervalField(42,
style='brackets')(pi)}}} and {{{RealIntervalField(42)(pi)}}}, then
arithmetic between them is slower than between objects with the same
parent. Also, there are several parts of Sage that create their own
{{{RealIntervalField}}} parents and return elements to the user, so the
option you suggest would not suffice to hide question-mark printing from
the user.
IMHO a global setting is a more sensible option; would that be all right,
or do you really want the setting to be per-parent?
If a global setting is acceptable, then we're in luck, because it already
exists: :)
{{{
sage: a = RIF(pi)
sage: a
3.141592653589794?
sage: sage.rings.real_mpfi.printing_style = 'brackets'
sage: a
[3.1415926535897931 .. 3.1415926535897936]
}}}
We could certainly document this global setting (I think it's entirely
undocumented now), if that would help.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9261#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.