ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 20 Nov 2014 05:10:29 -0600Can I get coefficients of a vector with respect to given basis for a vector space.http://ask.sagemath.org/question/24926/can-i-get-coefficients-of-a-vector-with-respect-to-given-basis-for-a-vector-space/Hello.
I have a question.
For example,
1. make vector space `V` by a basis `B=[1+x,3*x,x^2]` over the field of rationals`Q`
2. `v=3*x^2+17*x+5` in V
3. `v=a*B[0]+b*B[1]+c*B[2]` for some `a,b,c` in `Q`
4. `[a,b,c]`=?
We easily know the solution of previous example.
In general, for given basis `B` and a vector `v`, how can I get the list of coefficients?
And is it possible to the case of matrix space (`B`: the basis consists of matrices) ?
Thanks. :)SeminThu, 20 Nov 2014 05:10:29 -0600http://ask.sagemath.org/question/24926/