The simult command can solve a linear system of equations or several linear systems of equations with the same matrix of coefficients (see also 15.7.3).
Solve the system:
⎧ ⎨ ⎩ |
|
simult([[3,1],[3,2]],[[-2],[2]]) |
|
Hence x=−2 and y=4 is the solution.
Solve the systems:
⎧ ⎨ ⎩ |
|
and
⎧ ⎨ ⎩ |
|
simult([[3,1],[3,2]],[[-2,1],[2,2]]) |
|
Therefore x=−2 and y=4 is the solution of the first system of equations and x=0 and y=1 is the solution of the second system.