Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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_ncorrespond 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.

click to hide/show revision 2
No.2 Revision

This is not very specific to Sage: if M M is the matrix whose columns C_1,...,C_n C0,...,Cn1 represent your basis expressed in the canonical basis, you have M*X=aa, $MX=aa$, where X X is a column vector, whose entries x_1,...x_nx0,...xn1 correspond to the coefficients of the linear combination you are looking for, that is aa $aa = x_1*C_1+...+x_n*C_n.x_0C_0+...+x_{n-1}*C_{n-1}$.

So, if you want to find X X you just have to compute X=M^(-1)*aa.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()
click to hide/show revision 3
No.3 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, you have $MX=aa$, X=aa$ where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 4
No.4 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, then you have $MX=aa$ X=aa$, where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 5
No.5 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, then you have $MX=aa$, X=aa$ where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 6
No.6 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, then you have $MX=aa$ MX=aa where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 7
No.7 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, then you have MX=aa where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 8
No.8 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, then you have MX=aa where X is a column vector, whose entries x0,...xn1 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()
click to hide/show revision 9
No.9 Revision

This is not very specific to Sage: if M is the matrix whose columns C0,...,Cn1 represent your basis expressed in the canonical basis, you have MX=aa where X is a column vector, whose entries x0,...xn1 correspond to the coefficients of the linear combination you are looking for, that is aa=x0C0+...+xn1Cn1 .

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()