Question: format text output of matrices

Hello all,

only occasionally using maple, I calculated some matrices and vectors numerically with maple and would like to use the output for further processing with other computer programs.

My problem is that the output format created per default is far from being machine readable:


[0. , -0.374388562686400750 10 , -0.374388562686400750 10 ,

-18 -18]
-0.174912303608013020 10 , -0.174912303608013020 10 ]

[ -18 -18
[0. , 0.708119543904595083 10 , 0.708119543904595083 10 ,

-18 -18]
-0.174912303608013020 10 , -0.174912303608013020 10 ]

[5.0 , 3.75589707308264664 , -1.24410292691735336 , 3.75589707308264753 ,

-1.24410292691735247]


is there an (preferrably easy) way to get e.g. some comma-separated list of floating point values, (0.708119543904595083E-18), newlines to indicate a new row, nop additional newlines, etc. - which is easier to process with UNIX tools and c-programs, even with the command line version (maple instead of xmaple)? I'd like to have the process scripted so that I can easily redo my calculations with new parameters, transfer the output to my post-processing programs and see whether it is reasonable.

Thanks in advance

Benjamin
Please Wait...