This is not very specific to Sage: if M
is the matrix whose columns C_1,...,C_n
represent your basis expressed in the canonical basis, you have M*X=aa
, where X
is a column vector, whose entries x_1,...x_n
correspond to the coefficients of the linear combination you are looking for, that is aa = x_1*C_1+...+x_n*C_n
.
So, if you want to find X
you just have to compute X=M^(-1)*aa
.
![]() | 2 | No.2 Revision |
This is not very specific to Sage: if M is the matrix whose columns M
C0,...,Cn−1 represent your basis expressed in the canonical basis, you have C_1,...,C_n
$MX=aa$, where M*X=aa
, X is a column vector, whose entries X
x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is x_1,...x_n
aa
$aa =
.x_0C_0+...+x_{n-1}*C_{n-1}$.x_1*C_1+...+x_n*C_n
So, if you want to find X you just have to X
compute compute:X=M^(-1)*aa
.
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 3 | No.3 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, you have $MX=aa$, X=aa$ where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}*C_{n-1}$.
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 4 | No.4 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, then you have $MX=aa$ X=aa$, where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}*C_{n-1}$.
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 5 | No.5 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, then you have $MX=aa$, X=aa$ where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}*C_{n-1}$.
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 6 | No.6 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, then you have $MX=aa$ MX=aa where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}C_0+...+x_{n-1}*C_{n-1}$.C_{n-1}$.
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 7 | No.7 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, then you have MX=aa where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}C_{n-1}$.C_{n-1}$ .
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 8 | No.8 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, then you have MX=aa where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is $aa = x_0C_0+...+x_{n-1}C_{n-1}$ x_0C_0+...+x_{n-1}C_{n-1}$ .
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()
![]() | 9 | No.9 Revision |
This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn−1 represent your basis expressed in the canonical basis, you have MX=aa where X is a column vector, whose entries x0,...xn−1 correspond to the coefficients of the linear combination you are looking for, that is aa=x0C0+...+xn−1Cn−1 .
So, if you want to find X you just have to compute:
sage: X = M^(-1)*aa
Then, if you want to manipulate the coefficients xi as in a list, you can do:
sage: L = X.list()