#4425: sqrt(4) returns a SymbolicComposition instead of the number 2!
------------------------------+---------------------------------------------
 Reporter:  was               |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  major             |   Milestone:  sage-3.2
Component:  basic arithmetic  |    Keywords:          
------------------------------+---------------------------------------------
 In Sage-3.1.4 we have this, which I consider wrong:

 {{{
 sage: n = 4
 sage: type(sqrt(n))
 <class 'sage.calculus.calculus.SymbolicComposition'>
 sage: type(n.sqrt())
 <type 'sage.rings.integer.Integer'>
 }}}

 I think sqrt(foo) should first check if foo has a sqrt method, and
 if so call it.    I realize there is a subtle problem here, because
 the integer sqrt function calls the symbolic calculus one!  So we
 need some sort of architecture to fix this right.   This isn't trivial.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4425>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to