Ludek
01-13-2004, 10:29 PM
Dear all,
Has anyone verified the gaussj() function (C-version)? It didn't work for me with these numbers:
9 3 4 7
4 3 4 8
1 1 1 3
(where the column on the right is a right-hand vector).
The matrix inverse should be:
-1 1 0
0 5 -20
1 -6 15
However, the result of gaussj() was completely different. (I haven't checked the solution vector but I presume it would be wrong as well).
I would appreciate any comment on that.
Thank you.
Ludek
Has anyone verified the gaussj() function (C-version)? It didn't work for me with these numbers:
9 3 4 7
4 3 4 8
1 1 1 3
(where the column on the right is a right-hand vector).
The matrix inverse should be:
-1 1 0
0 5 -20
1 -6 15
However, the result of gaussj() was completely different. (I haven't checked the solution vector but I presume it would be wrong as well).
I would appreciate any comment on that.
Thank you.
Ludek