#3962: [with patch, needs work] Error in converting vector to SR
----------------------------+-----------------------------------------------
Reporter: jason | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.2
Component: linear algebra | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by jason):
* summary: [with patch, needs review] Error in converting vector to SR
=> [with patch, needs work] Error in converting
vector to SR
Comment:
Okay, there is a problem. Since __index__ just converts self to an int,
it rounds 1/2 to zero, etc. So we get 2^(SR(1/2)) = 1.
Changing the __index__ method to return int(Integer(self)) fixes the
problem.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3962#comment:9>
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
-~----------~----~----~----~------~----~------~--~---