#3887: [with patch, positive review] Bug in determinant
----------------------------+-----------------------------------------------
Reporter: craigcitro | Owner: craigcitro
Type: defect | Status: closed
Priority: blocker | Milestone: sage-3.1.2
Component: linear algebra | Resolution: fixed
Keywords: |
----------------------------+-----------------------------------------------
Comment (by craigcitro):
This pops up on my MacBook Pro, and whatever hardware Nils was running on
(his linux laptop, not sure beyond that).
I just checked -- reverting this patch gets me the same error:
{{{
sage: diagonal_matrix(ZZ, 68, [2]*66 + [1,1]).det()
-73786800370889000442
}}}
The bound that gets determined in that function is also wrong -- in this
case, the divisor it finds is 2, and the final determinant is 2^66:
{{{
sage: 2^66
73786976294838206464
sage: 2^66 < 10^20
True
sage: 2^66 < 10^20//2
False
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3887#comment:6>
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
-~----------~----~----~----~------~----~------~--~---