Question: How GenerateMatrix works

Hi all,

I have this small code as example:

> restart:with(LinearAlgebra):
> e1:=5*x1-x2+6*x3+10*x4-10;

                 e1 := 5 x1 - x2 + 6 x3 + 10 x4 - 10

> e2:=x1-x2+x3-10*x4;

                      e2 := x1 - x2 + x3 - 10 x4

> e3:=2*x1+3*x2-8*x3-x4+20;

                  e3 := 2 x1 + 3 x2 - 8 x3 - x4 + 20

> e4:=-x1+5*x2-3*x3+x4;

                     e4 := -x1 + 5 x2 - 3 x3 + x4

> (A,b):=GenerateMatrix({e1,e2,e3,e4},[x1,x2,x3,x4]);

                        [-1     5    -3      1]  [  0]
                        [                     ]  [   ]
                        [ 1    -1     1    -10]  [  0]
                A, b := [                     ], [   ]
                        [ 2     3    -8     -1]  [-20]
                        [                     ]  [   ]
                        [ 5    -1     6     10]  [ 10]

I want GenerateMatrix to give the matrices in the same order of equations:

First line of A should be 5, -1, 6, 10. Second line 1, -1, 1, -10, etc... The same fo the second member.

How to force GenerateMatrix to give me what I want.

Thanks for any help

Please Wait...