"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/test49" between
bas-2.5.tar.gz and bas-2.6.tar.gz

About: bas is an interpreter for the programming language BASIC.

test49  (bas-2.5):test49  (bas-2.6)
#!/bin/sh #!/bin/sh
echo -n $0: 'Matrix determinant... ' echo -n $0: 'Matrix determinant... '
cat >test.bas <<'eof' cat >test.bas <<'eof'
width 120 width 120
dim a(7,7),b(7,7) dim a(4,4),b(4,4)
mat read a mat read a
mat print a; mat print a;
print print
data 58,71,67,36,35,19,60 data -6,2,2,23
data 50,71,71,56,45,20,52 data -12,-6,0,16
data 64,40,84,50,51,43,69 data 2,4,2,17
data 31,28,41,54,31,18,33 data 4,8,2,2
data 45,23,46,38,50,43,50
data 41,10,28,17,33,41,46
data 66,72,71,38,40,27,69
mat b=inv(a) mat b=inv(a)
mat print b mat print b
print det print det
eof eof
cat >test.ref <<'eof' cat >test.ref <<'eof'
58 71 67 36 35 19 60 -6 2 2 23
50 71 71 56 45 20 52 -12 -6 0 16
64 40 84 50 51 43 69 2 4 2 17
31 28 41 54 31 18 33 4 8 2 2
45 23 46 38 50 43 50
41 10 28 17 33 41 46 -0.203125 0.046875 0.234375 -0.03125
66 72 71 38 40 27 69 1.15625 -0.84375 -0.71875 -0.4375
-4.5 3.5 2.5 2.5
9.636025e+07 320206 -537449 2323650 -1.135486e 0.28125 -0.21875 -0.09375 -0.1875
+07 3.019632e+07 -256
-9.650941e+07
4480 15 -25 108 -528 1404
-4487
-39436 -131 220 -951 4647 -12358
39497
273240 908 -1524 6589 -32198 85625
-273663
-1846174 -6135 10297 -44519 217549 -578534
1849032
1.315035e+07 43699 -73346 317110 -1549606
4120912 -1.31707e+07
-9.636079e+07 -320208 537452 -2323663 1.135493e
+07 -3.019649e+07
9.650995e+07
1
eof eof
sh ./test/runbas test.bas >test.data sh ./test/runbas test.bas >test.data
if cmp test.ref test.data if cmp test.ref test.data
then then
rm -f test.* rm -f test.*
echo passed echo passed
else else
echo failed echo failed
 End of changes. 3 change blocks. 
34 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)