#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 mhansen):
I think that the .sqrt() method in Integer and Rational should call
sqrt._do_sqrt instead of creating the SymbolicComposition themselves. For
example, see
{{{
sage: sqrt._do_sqrt(4)
2
sage: type(_)
<class 'sage.calculus.calculus.SymbolicComposition'>
sage: sqrt._do_sqrt(5)
sqrt(5)
sage: sqrt._do_sqrt(5, all=True)
[sqrt(5), -sqrt(5)]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4425#comment:2>
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
-~----------~----~----~----~------~----~------~--~---