generate the coefficient Matrix from linear equations
GenerateMatrix(eqns, vars, options)
list or set of (linear) equations
list or set of variables in which the equations occur
(optional) parameters; for a complete list, see LinearAlgebra[GenerateMatrix]
The GenerateMatrix(eqns, vars) command generates the augmented coefficient Matrix or coefficient Matrix and right hand side Vector from the linear system of equations eqns in the unknowns vars. The augmented form is the default, and the last column of this Matrix is the right-hand side values from the original list of equations.
The non-augmented form is returned if the result is assigned to two variables (see the second example below) or if the augmented = false option is provided.
sys ≔ 3⁢x1+2⁢x2+3⁢x3−2⁢x4=1,x1+x2+x3=3,x1+2⁢x2+x3−x4=2:
var ≔ x1,x2,x3,x4:
A,b ≔ GenerateMatrix⁡sys,var
A,b ≔ 323−21110121−1,132
A ≔ GenerateMatrix⁡sys,var
A ≔ 323−2111103121−12
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.