coeff_matrix INDEX

COEFF_MATRIX _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

coeff_matrix({<lineq\_list>})

(If you are feeling lazy then the braces can be omitted.)

<lineq\_list> :- linear equations. Can be of the form equation = number or just equation.

coeff_matrixcreates the coefficient matrix C of the linear equations.

It returns {C,X,B} such that CX = B.

examples:



coeff_matrix({x+y+4*z=10,y+x-z=20,x+y+4}); 


  {
   [4   1  1]
   [        ]
   [-1  1  1]
   [        ]
   [0   1  1]
   ,
   [z]
   [ ]
   [y]
   [ ]
   [x]
   ,
   [10]
   [  ]
   [20]
   [  ]
   [-4]
  }