On Feb 12, 2008 7:30 PM, Martin J. Ott <ottmartin at web.de> wrote:
> a:[matrix([1],[2]), matrix([3],[4])];
>
A is now a list consisting of two 2x1 matrices.
> b:matrix([0],[0])
B is a 2x1 matrix.
but what I want is the effect of:
> addcol(b,part(a,1),part(a,2))
>
This creates a 2x3 matrix from one 2x1 matrix and a list of two 2x1
matrices.
I suspect that you wanted A to be a 2x2 matrix: matrix([1,3],[2,4]). Then
addcol(B,A) will give you the 2x3 matrix.
By the way; Is there a function in MAXIMA equivalent to FoldList in
> Mathematica?
>
If you could tell us the specification of FoldList, perhaps we can help you.
Many (most?) of us are not Mathematica users.
-s