Ask Your Question
2

solving homogeneous system of linear equations

asked 13 years ago

anonymous user

Anonymous

updated 13 years ago

kcrisman gravatar image

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 13 years ago

kcrisman gravatar image

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.

Preview: (hide)
link

Comments

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

lainme gravatar imagelainme ( 13 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 3,912 times

Last updated: Dec 14 '11