Linear Independence


We can test a set of vectors for linear independence using the .linear_dependence mehtod. This method returns a vector containing the coefficients of a linear combination of the vectors in the given set that generates the zero vector, or an empty list if the only linear combination that generates the zero vector is the trivial linear combination (meaning the set of vectors is linearly independent). If the boolean statement at the end of the cell returns True, the set is linearly independent. If it returns false, the set is not.

Sage Cell


V = QQ^3
v1 = vector(QQ, [2, 3, 5])
v2 = vector(QQ, [7, 11, 13])
v3 = vector(QQ, [17, 19, 23])
V.linear_dependence([v1, v2, v3]) == []




Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.




Date: 02 Jun 2020 15:44

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License