Bug #2582: wrong determinant is calculated for matrix
http://redmine.ruby-lang.org/issues/show/2582

Author: tammo tjarks
Status: Open, Priority: Normal
Category: lib
ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

when I calculate the determinant of the matrix
2   0   1
0  -2   2
1   2   3

i get with:
irb(main):001:0> require 'matrix'
=> true
irb(main):002:0> a = Matrix[[2,0,1],[0,-2,2],[1,2,3]]
=> Matrix[[2, 0, 1], [0, -2, 2], [1, 2, 3]]
irb(main):003:0> a.det
=> -20

but it should be -18


----------------------------------------
http://redmine.ruby-lang.org