This is a couple of example scripts that maple can read, including a
set of test routines given to symbolic manipulator
companies, to compare their wares (summarized in an article
in Simon, B. "Comparative CAS Reviews", Notices of the American
Mathematical Society, Vol. 39, 7, 1992, pp. 700-710).
I copied things from that article, and at least one didn't work,
so there may be errors in it or in my typing.
Note, however, that the programs themselves gave the wrong answers
from time to time. The problems are hard, but it teaches us to
be wary of computer results, symbolic as well as numerical. These
programs are written by humans!
Also included are some other example demos, which might be interesting.
A couple of things to remember with maple:
- essentially every line ends with a ";" or ":"
- "read" is how you input a file.
- You have to define libraries before you can use functions.
- Don't use "=" when you mean ":=" (to define things).
- I've had trouble using command files with extensions, so I
always use "_" instead of ".". Don't know why that is!
- You can add start-up commands to a file called ".mapleinit"
in your home directory.
- It's not easy to dump lines into the xmaple window. It
doesn't understand end of lines.
To use a given script use the "save as" feature in mosaic to save it
(as plain text) in a file (call it maple_demo, for example). Get into maple
by typing
at the UNIX prompt, then type
at the maple prompt and watch it go!