| 1 | initial version |
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))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.