[wxMaxima] File Format .mac - wxMaxima-developers/wxmaxima GitHub Wiki
The .mac
files are ordinary text files that contain Maxima commands.
They can be read using Maxima’s batch()
or load()
command or wxMaxima’s File
/Batch File
menu entry.
You can be use .mac
files for writing your own library of macros. But since they don’t contain enough structural information they cannot be read back as a wxMaxima session.
Example
Quadratic.mac
defines a function and afterwards generates a plot with wxdraw2d()
. Afterwards the contents of the file Quadratic.mac
are printed and new defined function f()
is evaluated.
Note
Although the file Quadratic.mac
has an usual Maxima extension (.mac
), it can only be read by wxMaxima, since the command wxdraw2d()
is a wxMaxima-extension to Maxima.