GenerateEquations - Maple Help

LinearAlgebra

 GenerateEquations
 generate equations from the coefficient Matrix

 Calling Sequence GenerateEquations(A, v, B)

Parameters

 A - m x n Matrix v - list; specifies the n unknowns B - (optional) m x 1 Vector

Description

 • The GenerateEquations(A, v) function generates a list of linear equations from the coefficient Matrix A, using the variable names given in v.
 If the optional m x 1 right-hand side Vector B is included in the calling sequence, then the list of linear equations is equivalent to the Matrix equation $A·x=B$, where the x[i] are equal to the corresponding v[i].  In this case, v must specify exactly n unknowns.
 If the optional right-hand side Vector B is not included in the calling sequence, and v specifies exactly n unknowns, then the right-hand sides of the m linear equations are set to zero.  The list of equations is then equivalent to $A·x=\mathrm{ZeroVector}\left(m\right)$.
 If the optional right-hand side Vector B is not included in the calling sequence, and v specifies exactly n-1 unknowns, then the right-hand sides of the m linear equations are taken from the last column of the Matrix A.  That is, the Matrix A is treated as an augmented matrix. The list of equations is then equivalent to ${A}_{1..-1,1..-2}·x={A}_{1..-1,-1}$.
 • This function is part of the LinearAlgebra package, and so it can be used in the form GenerateEquations(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[GenerateEquations](..).

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $V≔\mathrm{Transpose}\left(\mathrm{VandermondeMatrix}\left(\left[1,2,3,4\right]\right)\right)$
 ${V}{≔}\left[\begin{array}{cccc}{1}& {1}& {1}& {1}\\ {1}& {2}& {3}& {4}\\ {1}& {4}& {9}& {16}\\ {1}& {8}& {27}& {64}\end{array}\right]$ (1)
 > $\mathrm{GenerateEquations}\left(V,\left[w,x,y,z\right],⟨0,-1,3,35⟩\right)$
 $\left[{w}{+}{x}{+}{y}{+}{z}{=}{0}{,}{w}{+}{2}{}{x}{+}{3}{}{y}{+}{4}{}{z}{=}{-1}{,}{w}{+}{4}{}{x}{+}{9}{}{y}{+}{16}{}{z}{=}{3}{,}{w}{+}{8}{}{x}{+}{27}{}{y}{+}{64}{}{z}{=}{35}\right]$ (2)
 > $\mathrm{UseHardwareFloats}≔\mathrm{false}:$
 > $A≔⟨⟨0.40,0.10,0.50⟩|⟨0.20,0.70,0.10⟩|⟨0.20,0.20,0.60⟩⟩$
 ${A}{≔}\left[\begin{array}{ccc}{0.40}& {0.20}& {0.20}\\ {0.10}& {0.70}& {0.20}\\ {0.50}& {0.10}& {0.60}\end{array}\right]$ (3)
 > $\mathrm{GenerateEquations}\left(A-1,\left[\mathrm{v1},\mathrm{v2},\mathrm{v3}\right]\right)$
 $\left[{-}{0.60}{}{\mathrm{v1}}{+}{0.20}{}{\mathrm{v2}}{+}{0.20}{}{\mathrm{v3}}{=}{0}{,}{0.10}{}{\mathrm{v1}}{-}{0.30}{}{\mathrm{v2}}{+}{0.20}{}{\mathrm{v3}}{=}{0}{,}{0.50}{}{\mathrm{v1}}{+}{0.10}{}{\mathrm{v2}}{-}{0.40}{}{\mathrm{v3}}{=}{0}\right]$ (4)
 > $B≔⟨⟨a,c⟩|⟨b,d⟩|⟨1,1⟩⟩$
 ${B}{≔}\left[\begin{array}{ccc}{a}& {b}& {1}\\ {c}& {d}& {1}\end{array}\right]$ (5)
 > $\mathrm{GenerateEquations}\left(B,\left[x,y\right]\right)$
 $\left[{a}{}{x}{+}{b}{}{y}{=}{1}{,}{c}{}{x}{+}{d}{}{y}{=}{1}\right]$ (6)