### The Maxima on-line user's manual

Algebra Calculator

#### Coefmatrix

Function: coefmatrix ([<eqn_1>, ..., <eqn_m>], [<x_1>, ..., <x_n>]) Returns the coefficient matrix for the variables <x_1>, ..., <x_n> of the system of linear equations <eqn_1>, ..., <eqn_m>.

```          (%i1) coefmatrix([2*x-(a-1)*y+5*b = 0, b*y+a*x = 3], [x,y]);
[ 2  1 - a ]
(%o1)                            [          ]
[ a    b   ]```

There are also some inexact matches for `coefmatrix`. Try `?? coefmatrix` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

eq1:x+y+t=0;

eq2:x+2*y-z+t=0;

eq3:x-y+z+t=0;

Calculate

##### coefmatrix-expand-print-rank-ratcoef-subst

fs: [x**5 - 10*x**3*y...

expr: t1*fs[1] + t2*f...

delxy(func) := subst(...

Calculate

##### coefmatrix-eliminate-length-makelist-rank-triangularize-unique

eqlist: [wu-wt,2*wu-w...

m: coefmatrix(makelis...

triangularize(m);

Calculate

##### coefmatrix

vf:[z+y,-x+y-z,z];

Mf:coefmatrix([z+y,-x...

Calculate

eq1:x=lambda;

eq2:y=lambda+mu;

eq3:z=gamma;

Calculate

g1:x+y+z=3;

g2:3*x-y+2*z=4;

g3:-x+4*y-2*z=1;

Calculate

eq1:x=lambda;

eq2:ylambda+mu;

eq3:z=gamma;

Calculate

##### coefmatrix

eq1:x:[lambda+alpha+b...

eq2:y:[lambda-alpha+3...

eq3:z:[lambda+2,alpha];

Calculate

eq1:x=lambda;

eq2:y=lambda+mu;

eq3:z=gamma;

Calculate

eq1:x=lambda;

eq2:y=lambda+mu;

eq3:z=gamma;

Calculate