Matrix form



Ben,

Try changing the "operator" of your list-of-lists to a "matrix" rather than a "list".

e.g.

l:[[1,2],[3,4]];
apply(matrix,%);

Chris


> -----Original Message-----
> From: maxima-bounces at math.utexas.edu [mailto:maxima-
> bounces at math.utexas.edu] On Behalf Of Ben Blomberg
> Sent: 04 February 2013 16:57
> To: maxima at math.utexas.edu
> Subject: Matrix form
> 
> Greetings everyone,
> 
> 
> I am new to Maxima and trying to convert a do loop from Mathematica. I
> am trying to find a function similar to MatrixForm[%] in mathematica.
> MatrixForm turns an array into a matrix and the % uses the results from
> the previous line. I have been creating a list of lists and trying to
> assign it to a matrix using  aa1:matrix (aa1 is the name of the matrix)
> but the result is not what I expect.
> 
> 
> To give some perspective here is the do loop from mathematica I am
> working with.
> 
> 
> Do[If[i
> 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima