15.1.8 Basis of a linear subspace
The
basis
command finds a basis of a linear subspace of ℝ
n
given a spanning set.
basis
takes
L
, a list of vectors generating a linear subspace of ℝ
n
.
basis(
L
)
returns a list of vectors that is a basis of this linear subspace.
Example
basis
([[1,2,3],[1,1,1],[2,3,4]])
⎧
⎨
⎩
⎡
⎣
−1,0,1
⎤
⎦
,
⎡
⎣
0,−1,−2
⎤
⎦
⎫
⎬
⎭