 
 
 
simult is used to solve a linear system of equations (resp. several linear systems of equations with the same matrix A) written in matrix form (see also 5.34.17) :
simult takes as arguments the matrix A of the system and the 
column vector (i.e. a one column matrix) b of the second 
member of the system (resp.
the matrix B whose columns are the 
vectors b of the second members of the different systems).
The result is a column vector solution of the system (resp. a matrix 
whose columns are the solutions of the different systems).
For example, to solve the system :
| ⎧ ⎨ ⎩ | 
 | 
Input :
Output :
Hence x=−2 and y=4 is the solution.
Input :
Output :
Hence x=−2 and y=4 is the solution of
| ⎧ ⎨ ⎩ | 
 | 
whereas x=0 and y=1 is the solution of
| ⎧ ⎨ ⎩ | 
 | 
 
 
