1RMATH(1) General Commands Manual RMATH(1)
2
3
4
6 rmath - a computer algebra system with functions and readline
7 matho - a computer algebra system with functions
8
9
11 rmath [ input_files ]
12 matho [ input_files ]
13
14
16 Mathomatic is a general-purpose computer algebra system (CAS) that can
17 symbolically solve, simplify, combine, and compare algebraic equations,
18 perform standard, complex number, modular, and polynomial arithmetic,
19 etc. It does some calculus and handles all elementary algebra, except
20 logarithms. Plotting expressions with gnuplot is also supported.
21
22 rmath and matho are shell scripts that allow you to use Mathomatic with
23 input of functions like sin(x) and sqrt(x) automatically expanded to
24 equivalent algebraic expressions by the m4 macro preprocessor. A
25 matching pair of parentheses is required around the parameters for all
26 functions in m4 Mathomatic; m4 requires this. rmath also runs the
27 rlwrap readline wrapper utility if available, to provide readline input
28 editing support similar to that provided by mathomatic(1).
29
30 rmath and matho define and enable named math functions in Mathomatic.
31 Most functions enabled here should be real number, complex number, and
32 symbolically capable. One exception is the abs(x) function, which
33 doesn't work with complex numbers, because it is defined in Mathomatic
34 as (((x)^2)^.5).
35
36 The following general functions are defined when using rmath or matho:
37 sqrt(x), cbrt(x), exp(x), pow(x,y), abs(x), sgn(x), gamma(x), floor(x),
38 ceil(x), int(x), and round(x).
39
40 The following standard trigonometric functions are defined: sin(x),
41 cos(x), tan(x), cot(x), sec(x), and csc(x). sinc(x) is the normalized
42 sinc function, defined as sin(pi*x)/(pi*x).
43
44 The following standard hyperbolic trigonometric functions are defined:
45 sinh(x), cosh(x), tanh(x), coth(x), sech(x), and csch(x).
46
47 The following named binary operators are defined: mod for modulus.
48 This operator is the same as the % operator.
49
50 The following universal constants are defined: pi, e, i (the imaginary
51 unit), euler, omega, and phi (the golden ratio).
52
53
55 Text files may be specified on the shell command line that will be
56 automatically read in through the m4 preprocessor into Mathomatic.
57 After any files are read in, Mathomatic prompts for input from the con‐
58 sole.
59
60 Mathomatic is best run from within a terminal emulator. It uses con‐
61 sole line input and output for the user interface. First you type in
62 your mathematical equations in standard algebraic notation, then you
63 can solve them by typing in the variable name at the prompt, or perform
64 operations on them with simple English commands. Type "help" or "?"
65 for the help command. If the command is longer than 4 letters, you
66 only need to type in the first 4 letters. Most commands operate on the
67 current equation by default.
68
69 Complete documentation is available in HTML and PDF formats; see the
70 local documentation directory or online at "http://math‐
71 omatic.org/math/doc/" for the latest Mathomatic documentation.
72
73
75 ~/.mathomaticrc
76 Optional startup file containing Mathomatic set command options.
77 It should be a text file with one set option per line. Do not
78 include the word "set". For example, the line "no color" will
79 make Mathomatic default to non-color mode, which is useful if
80 you aren't using a standard ANSI terminal emulator.
81
82
84 Mathomatic has been written by George Gesslein II (gesslein@linux.com)
85 with kind help from John Blommers ("http://www.blommers.org") and the
86 Internet community.
87
88
90 Please report any bugs to the author or on the Launchpad website:
91 "https://launchpad.net/mathomatic".
92
93
95 mathomatic(1), matho-primes(1), primorial(1), matho-mult(1), matho-
96 sum(1), matho-pascal(1), matho-sumsq(1)
97
98
99
100 RMATH(1)