#4425: [with patch, needs review] sqrt(4) returns a SymbolicComposition instead
of
the number 2!
------------------------------+---------------------------------------------
Reporter: was | Owner: kcrisman
Type: defect | Status: new
Priority: major | Milestone: sage-3.2
Component: basic arithmetic | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment (by kcrisman):
This is fine; in the meantime I did get around to implementing this.
However, I also moved the prec evaluation to the _do_sqrt function as
well, since it seemed consonant with your review.
After thinking about it, it also makes more sense do that because if for
some reason something lands in sqrt with prec which isn't RR, Rational,
Integer, etc. then _do_sqrt() should still make the square root be in RR
if x is positive; the previous behavior was to automatically put it in CC.
Does this seem okay?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4425#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---