a***@gmail.com
2005-10-05 07:43:06 UTC
Using the older linalg package, I could implement Cramer's rule, given
want to write the vector b into a column of a copy of A, without
changing the original matrix A. So how do I do this?
cheers,
Alasdair
A1:=copyinto(b,copy(A),1,1);
det(A1)/det(A);
But I can't work out how to do something similar with the newerdet(A1)/det(A);
A1:=A;
A1[1..4,1]:=b;
(for a 4x4 system). But this changes both A1 and A, so thatA1[1..4,1]:=b;
Determinant(A1)/Determinant(A);
produces 1. If I assign A1:=copy(A) the same thing happens. Clearly Iwant to write the vector b into a column of a copy of A, without
changing the original matrix A. So how do I do this?
cheers,
Alasdair