solving homogeneous system of linear equations

i like this post (click again to cancel)
1
i dont like this post (click again to cancel)

The system is written on the form Ax=0. I know this can be done by using, for example,

solve([eq1==0,eq2==0],x1,x2)

But this is somewhat complex. I wonder if the system can be directly solved by A.solve_right or some other simpler notation?

asked Dec 14 '11

anonymous user

Anonymous

updated Dec 15 '11

anonymous user

Anonymous

i like this answer (click again to cancel)
2
i dont like this answer (click again to cancel)

Is this what you mean? I'm not sure, because should the zero vector be a solution for you?

sage: A = matrix([[1,2],[2,4]])
sage: A.solve_right(vector([0,0]))
(0, 0)
sage: A\vector([1,2])
(1, 0)
sage: A*vector([1,0])
(1, 2)

Or maybe you wanted this.

sage: A.right_kernel()
Free module of degree 2 and rank 1 over Integer Ring
Echelon basis matrix:
[ 2 -1]

I hope I'm not misunderstanding something here. See this Linear Algebra quickref card for a lot more information.

link

posted Dec 14 '11

kcrisman gravatar image kcrisman
6784 14 67 152

the right_kernel is exactly what I want. Thanks very much for your answer and the resources provided!

lainme (Dec 14 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Dec 14 '11

Seen: 209 times

Last updated: Dec 14 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.