| 1 |
<!-- manual page source format generated by PolyglotMan v3.2, --> |
| 2 |
<!-- available at http://polyglotman.sourceforge.net/ --> |
| 3 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 4 |
|
| 5 |
<html> |
| 6 |
<head> |
| 7 |
<meta name="generator" content= |
| 8 |
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org"> |
| 9 |
|
| 10 |
<title>MATHOMATIC(1) manual page</title> |
| 11 |
</head> |
| 12 |
|
| 13 |
<body bgcolor='white'> |
| 14 |
<a href='#toc'>Table of Contents</a> |
| 15 |
|
| 16 |
<h2><a name='sect0' href='#toc0' id= |
| 17 |
"sect0">Name</a></h2>mathomatic - a computer algebra system |
| 18 |
|
| 19 |
<h2><a name='sect1' href='#toc1' id= |
| 20 |
"sect1">Synopsis</a></h2><b>mathomatic</b> [ |
| 21 |
<b>-abcdehqrtuvwx</b> ] [ <b>-s</b> level:time ] [ <b>-m</b> |
| 22 |
number ] [ input_files or input ] |
| 23 |
|
| 24 |
<h2><a name='sect2' href='#toc2' id= |
| 25 |
"sect2">Description</a></h2>Mathomatic is a general-purpose |
| 26 |
computer algebra system (CAS) that can symbolically solve, |
| 27 |
simplify, combine, and compare algebraic equations, perform |
| 28 |
standard, complex number, modular, and polynomial arithmetic, |
| 29 |
etc. It does some calculus and handles all elementary algebra, |
| 30 |
except logarithms. Trigonometry and function expansion are |
| 31 |
supported in a separate program called <a href= |
| 32 |
'rmath.1.html'><b>rmath</b>(1)</a> . Plotting expressions with |
| 33 |
<b>gnuplot</b> is also supported. |
| 34 |
|
| 35 |
<p><b>mathomatic</b> is the main Mathomatic application that does |
| 36 |
interactive symbolic-numeric mathematics through a simple |
| 37 |
command-line interface. Readline or editline support is usually |
| 38 |
compiled into this application, making it easy to edit input and |
| 39 |
recall previous input with the cursor keys. The numeric |
| 40 |
arithmetic is double precision floating point with about 14 |
| 41 |
decimal digits accuracy. Many results will be exact, because |
| 42 |
symbolic math is an exact math, and because multiple floating |
| 43 |
point numbers can be combined for a single mathematical value; |
| 44 |
for example: <b>2^(1/3),</b> which is the cube root of 2 |
| 45 |
exactly.</p> |
| 46 |
|
| 47 |
<h2><a name='sect3' href='#toc3' id="sect3">Options</a></h2> |
| 48 |
|
| 49 |
<dl> |
| 50 |
<dt><b>-a</b></dt> |
| 51 |
|
| 52 |
<dd>Enable alternative colors. Ansi color mode will be enabled |
| 53 |
in MS-Windows, if this option is specified and color mode is |
| 54 |
on.</dd> |
| 55 |
|
| 56 |
<dt><b>-b</b></dt> |
| 57 |
|
| 58 |
<dd>Enable bold colors. Color mode will be turned on and colors |
| 59 |
will be brighter if this option is specified. Same as the "set |
| 60 |
bold color" command.</dd> |
| 61 |
|
| 62 |
<dt><b>-c</b></dt> |
| 63 |
|
| 64 |
<dd>Toggle color mode. This mode outputs ANSI terminal escape |
| 65 |
sequences to make each level of parentheses a different color, |
| 66 |
for easier reading. Requires a terminal emulator that supports |
| 67 |
ANSI color escape sequences. If the colors are too hard to see, |
| 68 |
use the <b>-b</b> option to increase the color brightness.</dd> |
| 69 |
|
| 70 |
<dt><b>-d</b></dt> |
| 71 |
|
| 72 |
<dd>Set demo mode. Currently this mode only bypasses loading |
| 73 |
the startup (rc) file, and ignores the pause command. It also |
| 74 |
allows using the calculate command without prompting for the |
| 75 |
values of any of the variables.</dd> |
| 76 |
|
| 77 |
<dt><b>-e</b></dt> |
| 78 |
|
| 79 |
<dd>Process mathematical expressions and Mathomatic commands |
| 80 |
instead of input files on the shell command line, and then |
| 81 |
quit. Unquoted space characters are the line separators on the |
| 82 |
Mathomatic input that follows this option. Works similar to |
| 83 |
entering it into the Mathomatic main prompt, except the |
| 84 |
autoselect option is turned off. Useful for quick command-line |
| 85 |
calculations. The startup messages are not displayed with this |
| 86 |
option. Follow this option with "--" so that expressions can |
| 87 |
start with a minus sign (-).</dd> |
| 88 |
|
| 89 |
<dt><b>-h</b></dt> |
| 90 |
|
| 91 |
<dd>Display a brief help message listing all of these options |
| 92 |
and then exit.</dd> |
| 93 |
|
| 94 |
<dt><b>-m number</b></dt> |
| 95 |
|
| 96 |
<dd>Change the memory size of equation spaces. It is followed |
| 97 |
by a decimal, floating point number which is a multiplier of |
| 98 |
the default equation space size. This allows larger equation |
| 99 |
spaces so that manipulating extremely large expressions will |
| 100 |
succeed without getting the "Expression too large" error. |
| 101 |
Specifying a number higher than 100 may make Mathomatic |
| 102 |
unresponsive.</dd> |
| 103 |
|
| 104 |
<dt><b>-q</b></dt> |
| 105 |
|
| 106 |
<dd>Set quiet mode. The startup messages and prompts are not |
| 107 |
displayed. This is useful when piping or redirecting input into |
| 108 |
Mathomatic, because the input won’t be displayed, so |
| 109 |
prompt output should be turned off. This option does the same |
| 110 |
thing as the "set no prompt" command.</dd> |
| 111 |
|
| 112 |
<dt><b>-r</b></dt> |
| 113 |
|
| 114 |
<dd>Disable readline or editline input processing. Readline, |
| 115 |
and the editline drop-in replacement library, allow line input |
| 116 |
editing using the cursor keys, and output terminal control |
| 117 |
codes, all of which can be turned off with this option.</dd> |
| 118 |
|
| 119 |
<dt><b>-s level:time</b></dt> |
| 120 |
|
| 121 |
<dd>Set the enforced security level for the user’s |
| 122 |
Mathomatic session. Level 0 is the default with no security. |
| 123 |
Level 1 disallows shelling out (forking). Level 2 disallows |
| 124 |
shelling out and writing files. Level 3 disallows shelling out |
| 125 |
and reading/writing files. Level 4 is the highest security |
| 126 |
level and is the same as compiling with the -DSECURE option. |
| 127 |
This run-time option was created for use on open public |
| 128 |
servers. Specifying a colon, then a time in seconds, will time |
| 129 |
limit the application for that session.</dd> |
| 130 |
|
| 131 |
<dt><b>-t</b></dt> |
| 132 |
|
| 133 |
<dd>Set test mode. Used when testing and comparing output. |
| 134 |
Bypasses loading startup (rc) file, turns off color mode and |
| 135 |
readline, sets wide output mode, ignores the pause command, |
| 136 |
etc. It also allows using the calculate command without |
| 137 |
prompting for the values of any of the variables.</dd> |
| 138 |
|
| 139 |
<dt><b>-u</b></dt> |
| 140 |
|
| 141 |
<dd>Guarantee that standard output and standard error output |
| 142 |
are unbuffered. Also echoes all line input if not in quiet mode |
| 143 |
( <b>-q</b> option ). Useful when piping.</dd> |
| 144 |
|
| 145 |
<dt><b>-v</b></dt> |
| 146 |
|
| 147 |
<dd>Display program name and version number, then exit |
| 148 |
successfully.</dd> |
| 149 |
|
| 150 |
<dt><b>-w</b></dt> |
| 151 |
|
| 152 |
<dd>Set wide output mode for an unlimited width output device |
| 153 |
like the "set wide" command does. Sets infinite screen columns |
| 154 |
and rows so that 2D (two-dimensional) expression output will |
| 155 |
always succeed and not be downgraded to 1D output when it |
| 156 |
doesn’t fit in the display area. Use when redirecting |
| 157 |
output or with a terminal emulator that doesn’t wrap |
| 158 |
lines. This mode only affects 2D output.</dd> |
| 159 |
|
| 160 |
<dt><b>-x</b></dt> |
| 161 |
|
| 162 |
<dd>Enable HTML output mode (which is also valid XHTML). This |
| 163 |
makes Mathomatic output suitable for inclusion in a web page. |
| 164 |
Color and bold mode affect this mode, allowing HTML color |
| 165 |
output. Wide output mode is also set by this option, meaning |
| 166 |
expressions will always be displayed in 2D.</dd> |
| 167 |
</dl> |
| 168 |
|
| 169 |
<h2><a name='sect4' href='#toc4' id="sect4">General</a></h2>After |
| 170 |
any options, text files may be specified on the shell command |
| 171 |
line that will be automatically read in with the read command, |
| 172 |
unless the <b>-e</b> option is specified. |
| 173 |
|
| 174 |
<p>Mathomatic is best run from within a terminal emulator. It |
| 175 |
uses console line input and output for the user interface. First |
| 176 |
you type in your mathematical equations in standard algebraic |
| 177 |
notation, then you can solve them by typing in the variable name |
| 178 |
at the prompt, or perform operations on them with simple English |
| 179 |
commands. Type "help" or "?" for the help command, "help |
| 180 |
examples" to get started. If the command name is longer than 4 |
| 181 |
letters, you only need to type in the first 4 letters. Most |
| 182 |
commands operate on the current equation by default.</p> |
| 183 |
|
| 184 |
<p>A command preceded by an exclamation point (such as "!ls") is |
| 185 |
taken to be a shell command and is passed unchanged to the shell |
| 186 |
(/bin/sh). "!" by itself invokes the default shell, which is |
| 187 |
specified in the SHELL environment variable. "!" is also the |
| 188 |
factorial operator.</p> |
| 189 |
|
| 190 |
<p>Complete documentation is available in HTML and PDF formats; |
| 191 |
see the local documentation directory or online at "<a href= |
| 192 |
'http://mathomatic.org/math/doc/'>http://mathomatic.org/math/doc/</a> |
| 193 |
" for the latest Mathomatic documentation.</p> |
| 194 |
|
| 195 |
<h2><a name='sect5' href='#toc5' id="sect5">Environment</a></h2> |
| 196 |
|
| 197 |
<dl> |
| 198 |
<dt><b>EDITOR</b></dt> |
| 199 |
|
| 200 |
<dd>The EDITOR environment variable specifies which text editor |
| 201 |
to use for the edit command.</dd> |
| 202 |
</dl> |
| 203 |
|
| 204 |
<h2><a name='sect6' href='#toc6' id="sect6">Files</a></h2> |
| 205 |
|
| 206 |
<dl> |
| 207 |
<dt><b>~/.mathomaticrc</b></dt> |
| 208 |
|
| 209 |
<dd>Optional startup file containing Mathomatic set command |
| 210 |
options. It should be a text file with one or more set options |
| 211 |
per line. For example, the line "no color" will make Mathomatic |
| 212 |
default to non-color mode, which is useful if you aren’t |
| 213 |
using a supported color device.</dd> |
| 214 |
</dl> |
| 215 |
|
| 216 |
<h2><a name='sect7' href='#toc7' id= |
| 217 |
"sect7">Author</a></h2>Mathomatic has been written by George |
| 218 |
Gesslein II ([email protected]), with help from the |
| 219 |
Internet community. |
| 220 |
|
| 221 |
<h2><a name='sect8' href='#toc8' id="sect8">Reporting |
| 222 |
Bugs</a></h2>The command to take the limit of an expression is |
| 223 |
partially functional and experimental. All else should work |
| 224 |
perfectly; if not, please report it as a bug to the author or on |
| 225 |
the Launchpad website: "<a href= |
| 226 |
'https://launchpad.net/mathomatic'>https://launchpad.net/mathomatic</a> |
| 227 |
". |
| 228 |
|
| 229 |
<h2><a name='sect9' href='#toc9' id="sect9">See |
| 230 |
Also</a></h2><a href='rmath.1.html'><b>rmath</b>(1)</a> , |
| 231 |
<a href='matho-primes.1.html'><b>matho-primes</b>(1)</a> , |
| 232 |
<a href='primorial.1.html'><b>primorial</b>(1)</a> , <a href= |
| 233 |
'matho-mult.1.html'><b>matho-mult</b>(1)</a> , <a href= |
| 234 |
'matho-sum.1.html'><b>matho-sum</b>(1)</a> , <a href= |
| 235 |
'matho-pascal.1.html'><b>matho-pascal</b>(1)</a> , <a href= |
| 236 |
'matho-sumsq.1.html'><b>matho-sumsq</b>(1)</a> |
| 237 |
<hr> |
| 238 |
|
| 239 |
<p><a name='toc' id="toc"><b>Table of Contents</b></a></p> |
| 240 |
|
| 241 |
<ul> |
| 242 |
<li><a name='toc0' href='#sect0' id="toc0">Name</a></li> |
| 243 |
|
| 244 |
<li><a name='toc1' href='#sect1' id="toc1">Synopsis</a></li> |
| 245 |
|
| 246 |
<li><a name='toc2' href='#sect2' id="toc2">Description</a></li> |
| 247 |
|
| 248 |
<li><a name='toc3' href='#sect3' id="toc3">Options</a></li> |
| 249 |
|
| 250 |
<li><a name='toc4' href='#sect4' id="toc4">General</a></li> |
| 251 |
|
| 252 |
<li><a name='toc5' href='#sect5' id="toc5">Environment</a></li> |
| 253 |
|
| 254 |
<li><a name='toc6' href='#sect6' id="toc6">Files</a></li> |
| 255 |
|
| 256 |
<li><a name='toc7' href='#sect7' id="toc7">Author</a></li> |
| 257 |
|
| 258 |
<li><a name='toc8' href='#sect8' id="toc8">Reporting |
| 259 |
Bugs</a></li> |
| 260 |
|
| 261 |
<li><a name='toc9' href='#sect9' id="toc9">See Also</a></li> |
| 262 |
</ul> |
| 263 |
</body> |
| 264 |
</html> |