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

First time here? Check out the FAQ!

Ask Your Question
0

A linear algebra question

asked 2 years ago

tanyanlan gravatar image

updated 1 year ago

FrédéricC gravatar image

Is it possible to solve this linear algebra question by SageMath?

Given column vectors v1=[1,1,3], v2=[1,0,-2] and v3=[a,3,3].

Question: for what value of a, the vector v3 is in the span of v1 and v2?

Thank you in advance.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 2 years ago

Max Alekseyev gravatar image

Determinant of the matrix formed by the given vectors must be zero, which gives an algebraic equation for a:

R.<a> = PolynomialRing(QQ)
v1=[1,1,3]
v2=[1,0,-2]
v3=[a,3,3]
eq = Matrix([v1,v2,v3]).det()
print(eq.roots(multiplicities=False))
Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 273 times

Last updated: Dec 21 '22