]> gitweb.factorcode.org Git - factor.git/blob - extra/math/matrices/laplace/laplace-tests.factor
e1c3a7f70a4f071713d2d5221f8515f0d473b4bb
[factor.git] / extra / math / matrices / laplace / laplace-tests.factor
1 ! Copyright (C) 2013 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test kernel ;
4 IN: math.matrices.laplace
5
6 { -2 } [ { { 1 2 } { 3 4 } } determinant ] unit-test
7
8 { 0 } [
9     { { 1 2 3 } { 4 5 6 } { 7 8 9 } } determinant
10 ] unit-test
11
12 { -47860032 } [
13     {
14         { 40 39 38 37 }
15         { 1 1 1 831 }
16         { 22 22 1110 299 }
17         { 13 14 15 17 }
18     } determinant
19 ] unit-test