                                m4 Mathomatic
                                -------------

Run "rmath" to run Mathomatic using GNU m4 as a macro pre-processor which
allows easy entry of standard math functions.  "rmath" and "matho" are shell
scripts and are only known to work with GNU software.  "rmath" runs "matho"
with a readline wrapper, if available.  "matho" runs m4 and pipes the output
into Mathomatic.

Defined macros for functions and constants are listed in the file
"functions.m4".  Trigonometric functions (sin(), tan(), etc.) are implemented
as complex exponentials in Mathomatic:

 1-> sin(x)^2+cos(x)^2

      ((e#^(i#*x)) - (e#^(-1*i#*x)))       ((e#^(i#*x)) + (e#^(-1*i#*x)))
 #1: (------------------------------^2) + (------------------------------^2)
                  (2*i#)                                 2

 1-> simplify

 #1: 1

 1-> 

Mathomatic input is filtered by m4, so opening a shell or an editor doesn't
work.

The "quit" and "exit" commands may have some delay.  You can use the EOF
character (control-D) to quit instantly, instead.

The read command currently doesn't use m4, so it can't process functions.
The way to read in text files with functions is to supply the filenames on
the command line:

	rmath filenames
