I convert list to matrix in Maxima in following way:
DataL : [ [1,2], [2,4], [3,6], [4,8] ];
DataM: apply('matrix,DataL);
How to do it the other way ? How to convert given matrix DataM into list DataL ?
If n is equal to m , Maxima prompts for the type of the matrix (diagonal, symmetric, antisymmetric, or general) and for each element. Each response is terminated by a semicolon ; or dollar sign $ . If n is not equal to m , Maxima prompts for each element. The elements may be any expressions, which are evaluated.
Matrix multiplication is represented by the noncommutative multiplication operator . . The corresponding noncommutative exponentiation operator is ^^ . For a matrix A , A . A = A ^^2 and A ^^-1 is the inverse of A , if it exists.
I know it's late in the game, but for what it's worth, there is a simpler way.
my_matrix : matrix ([a, b, c], [d, e, f]);
my_list : args (my_matrix);
=> [[a, b, c], [d, e, f]]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With