Ask Your Question

Bubusettete's profile - activity

2017-01-04 05:52:07 +0100 received badge  Famous Question (source)
2015-10-15 06:25:21 +0100 received badge  Notable Question (source)
2015-01-14 16:21:17 +0100 received badge  Popular Question (source)
2013-12-02 04:20:52 +0100 received badge  Editor (source)
2013-12-02 04:19:14 +0100 answered a question Yet another linear combination

Ok, it works, sorry for the silly question, I got a bit lost and panicked with the fact of not knowing Sage commands. But it was easy :) thank you very much!

2013-11-29 18:49:42 +0100 asked a question Yet another linear combination

Hi, I'm really new to Sage and to programming in general. I have 20 linear independent vectors of length 20, and a linear dependent vector. I would like to write this one as a linear combination of the others: I looked up on the internet all day, but nothing I found worked. The ways I tried are:

  • define a vector space of dim 20 on the field I'm using, impose my vectors as a base, and use the method .coodinates(). PROBLEM: I couldn't impose the basis, I didn't find a command to do so.

  • use G.solve_right(s), where G is a 20x20 matrix and s is my linear dependent vector. I thought I would have a vector as an output but instead I get something of dimension 20x8. Weird.

  • I tried to do a linear system directly using equations with the vectors, in order to solve them with respect to some variables, but I got as an output that you can't do it using vectors.

So, what shall I try? Thank you very much