next up previous
Next: Integrations Up: MuPAD Previous: MuPAD

Linear Equations

Like Octave, MuPAD can solve linear equations with ease. Unlike Octave, MuPAD will return the results in symbolic rather than numeric form. To demonstrate this we can revisit Problem .

\begin{displaymath}\begin{split}x + 2y + 3z & = 20 \\ 2x + y + z & = 11 \\ x + y - z & = 1 \\ \end{split}\end{displaymath} (4)

It is not necessary to construct a matrix. Instead, we type:

>> equations := {x + 2*y +3*z=20, 2*x + y + z=11, x + y - z= 1}:

Next, we use the MuPAD solver to solve the system:

>> solve(equations)

                          {[x = 2, y = 3, z = 4]}



Kwan Lowe 2003-01-31