 linalg(deprecated)/sumbasis - Maple Help

linalg(deprecated)

 sumbasis
 determine a basis for the sum of vector spaces Calling Sequence sumbasis(S1, S2, ...) Parameters

 S[i] - vector, set of vectors or list of vectors Description

 • Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[SumBasis], instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • A basis for the sum of the vector spaces spanned by the vectors in Si is returned.
 • A basis for the zero-dimensional space is an empty set or list.
 • The command with(linalg,sumbasis) allows the use of the abbreviated form of this command. Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[SumBasis], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $\mathrm{v1}≔\mathrm{vector}\left(\left[1,0,1,0\right]\right)$
 ${\mathrm{v1}}{≔}\left[\begin{array}{cccc}{1}& {0}& {1}& {0}\end{array}\right]$ (1)
 > $\mathrm{v2}≔\mathrm{vector}\left(\left[0,1,0,1\right]\right)$
 ${\mathrm{v2}}{≔}\left[\begin{array}{cccc}{0}& {1}& {0}& {1}\end{array}\right]$ (2)
 > $\mathrm{v3}≔\mathrm{vector}\left(\left[1,2,1,1\right]\right)$
 ${\mathrm{v3}}{≔}\left[\begin{array}{cccc}{1}& {2}& {1}& {1}\end{array}\right]$ (3)
 > $\mathrm{v4}≔\mathrm{vector}\left(\left[-1,-2,1,0\right]\right)$
 ${\mathrm{v4}}{≔}\left[\begin{array}{cccc}{-1}& {-2}& {1}& {0}\end{array}\right]$ (4)
 > $\mathrm{sumbasis}\left(\left\{\mathrm{v1},\mathrm{v2}\right\},\left\{\mathrm{v3},\mathrm{v4}\right\}\right)$
 $\left\{{\mathrm{v1}}{,}{\mathrm{v2}}{,}{\mathrm{v3}}{,}{\mathrm{v4}}\right\}$ (5)
 > $\mathrm{sumbasis}\left(\left\{\mathrm{v1},\mathrm{v2},\mathrm{v3}\right\},\left\{\mathrm{v3},\mathrm{v4}\right\},\left\{\mathrm{v2},\mathrm{v3}\right\}\right)$
 $\left\{{\mathrm{v1}}{,}{\mathrm{v2}}{,}{\mathrm{v3}}{,}{\mathrm{v4}}\right\}$ (6)