dear Peter,
thanks for your hint (I've seen addrow in your request on Linear Systems ;-).
My problem was: using the file rref.mac from Antoine Chambert-Loir
(antoine.chambert-loir at univ-rennes1.fr) there was a function in it
with same name 'addrow' as in Maxima; so I always got the error
(%i14) L :matrix( [1,2,-3,4],[-3,-6,-5,7],[-1,-2,-11,15]);
(%i15) addrow(L, [0,-1,0,0]);
Too few arguments supplied to addrow(m,i,j,k): - an error
.. which confused me. This new 'addrow' had another purpose but shadowed the original one from Maxima. Giving this new 'addrow' another name it works now.
For my second question I can use addrow and rowswap (from linearalgebra package), ok.
HTH wolfgang
"Peter Danenberg" <pcd at wikitex.org> schrieb:
> On Sat, Oct 27, 2007 at 09:02:00AM +0000, Wolfgang Lindner wrote:
> > A:matrix([1,2],[3,4])
> > B:matrix([5,6])
> > A and B stacked should give: matrix([1,2],[3,4],[5,6])
>
> Try:
>
> (%i36) A:matrix([1,2],[3,4])$
> (%i37) B:matrix([5,6])$
> (%i38) addrow(A, B);
> (%o38)
> [ 1 2 ]
> [ ]
> [ 3 4 ]
> [ ]
> [ 5 6 ]