FW: exporting/displaying in programming code style
Subject: FW: exporting/displaying in programming code style
From: George Leeman
Date: Mon, 28 Jun 2010 10:30:32 -0400
Eryk,
For displaying, issue "display2d:false;". Another approach I have used,
which works for exporting expressions, is "fortran"; issue describe(fortran)
for more information. For long expressions you would have to edit the
output (which includes continuation characters), but that is usually a quick
job.
--- George Leeman
-----Original Message-----
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of W Eryk Wolski
Sent: Monday, June 28, 2010 8:24 AM
To: maxima at math.utexas.edu
Subject: exporting/displaying in programming code style
Maxima is great, so I started to use it but I am still a newbe
(searched for quite a while the manual) and can't figure out how
to export/display an maxima result (some equation)
in a programming language style?
So instead of getting something like this:
4 3 2 2 3 4
2
L = - ((2 m2 - m1 m2 - 2 m1 m2 - m1 m2 + 2 m1 ) L3
I would prefer to get a display such as:
L = - ((2 * m2^4 - m1^3 * m2^2 - 2* m1^2 * m2^2 - m1^3 * m2 + 2 *
m1^4 ) * L3^2
How can I change how Maxima displays formulas?
Thanks
Eryk