MATHOMATIC(1)
๐ MATHOMATIC(1) ๐
okay bestie, sit DOWN, because today we're talking about mathomatic, a whole computer algebra system that lives in your terminal, and she is that girl. This is from the General Commands Manual, section 1, and honestly? iconic.
โจ NAME โจ
mathomatic โ a computer algebra system ๐งฎ๐
๐ธ SYNOPSIS ๐ธ
mathomatic [ -abcdehqrtuvwx ] [ -s level:time ] [ -m number ] [ input_files or input ]
๐ฆ DESCRIPTION ๐ฆ
So, mathomatic is a general-purpose computer algebra system (a CAS, iykyk) that can symbolically solve, simplify, combine, and compare algebraic equations. She does standard, complex number, modular, and polynomial arithmetic, etc. She does a little calculus, and she handles all elementary algebra โ with one tiny exception, no logarithms, sorry babe. Trigonometry and function expansion are supported in a separate program called rmath(1). Plotting expressions with gnuplot is also supported, because she's versatile like that. ๐
mathomatic is the main Mathomatic application, and she does interactive symbolic-numeric mathematics through a simple command-line interface. Readline or editline support is usually compiled into this application, which makes it easy to edit your input and recall previous input with the cursor keys. The numeric arithmetic is double precision floating point with about 14 decimal digits accuracy. A lot of results will be exact, because symbolic math is an exact math, and because multiple floating point numbers can be combined for a single mathematical value. For example: 2^(1/3), which is the cube root of 2, exactly. ๐
๐ OPTIONS ๐
Here's the full roster, no skips, no cuts:
-aโ Enable alternative colors. Ansi color mode will be enabled in MS-Windows, if this option is specified and color mode is on.-bโ Enable bold colors. Color mode will be turned on and colors will be brighter if this option is specified. Same as theset bold colorcommand.-cโ Toggle color mode. This mode outputs ANSI terminal escape sequences to make each level of parentheses a different color, for easier reading. Requires a terminal emulator that supports ANSI color escape sequences. If the colors are too hard to see, use the-boption to increase the color brightness.-dโ Set demo mode. Currently this mode only bypasses loading the startup (rc) file, and ignores the pause command. It also allows using the calculate command without prompting for the values of any of the variables.-eโ Process mathematical expressions and Mathomatic commands instead of input files on the shell command line, and then quit. Unquoted space characters are the line separators on the Mathomatic input that follows this option. Works similar to entering it into the Mathomatic main prompt, except the autoselect option is turned off. Useful for quick command-line calculations. The startup messages are not displayed with this option. Follow this option with--so that expressions can start with a minus sign (-).-hโ Display a brief help message listing all of these options and then exit.-mnumber โ Change the memory size of equation spaces. It is followed by a decimal, floating point number which is a multiplier of the default equation space size. This allows larger equation spaces so that manipulating extremely large expressions will succeed without getting the"Expression too large"error. Specifying a number higher than100may make Mathomatic unresponsive.-qโ Set quiet mode. The startup messages and prompts are not displayed. This is useful when piping or redirecting input into Mathomatic, because the input won't be displayed, so prompt output should be turned off. This option does the same thing as theset no promptcommand.-rโ Disable readline or editline input processing. Readline, and the editline drop-in replacement library, allow line input editing using the cursor keys, and output terminal control codes, all of which can be turned off with this option.-slevel:time โ Set the enforced security level for the user's Mathomatic session. Level0is the default with no security. Level1disallows shelling out (forking). Level2disallows shelling out and writing files. Level3disallows shelling out and reading/writing files. Level4is the highest security level and is the same as compiling with the-DSECUREoption. This run-time option was created for use on open public servers. Specifying a colon, then a time in seconds, will time limit the application for that session.-tโ Set test mode. Used when testing and comparing output. Bypasses loading startup (rc) file, turns off color mode and readline, sets wide output mode, ignores the pause command, etc. It also allows using the calculate command without prompting for the values of any of the variables.-uโ Guarantee that standard output and standard error output are unbuffered. Also echoes all line input if not in quiet mode (the-qoption). Useful when piping.-vโ Display program name and version number, then exit successfully.-wโ Set wide output mode for an unlimited width output device like theset widecommand does. Sets infinite screen columns and rows so that 2D (two-dimensional) expression output will always succeed and not be downgraded to 1D output when it doesn't fit in the display area. Use when redirecting output or with a terminal emulator that doesn't wrap lines. This mode only affects 2D output.-xโ Enable HTML output mode (which is also valid XHTML). This makes Mathomatic output suitable for inclusion in a web page. Color and bold mode affect this mode, allowing HTML color output. Wide output mode is also set by this option, meaning expressions will always be displayed in 2D.
๐ GENERAL ๐
After any options, text files may be specified on the shell command line that will be automatically read in with the read command, unless the -e option is specified.
Mathomatic is best run from within a terminal emulator. She uses console line input and output for the user interface. First you type in your mathematical equations in standard algebraic notation, then you can solve them by typing in the variable name at the prompt, or perform operations on them with simple English commands. Type help or ? for the help command, help examples to get started. If the command name is longer than 4 letters, you only need to type in the first 4 letters. Most commands operate on the current equation by default. ๐ซถ
A command preceded by an exclamation point (such as !ls) is taken to be a shell command and is passed unchanged to the shell (/bin/sh). ! by itself invokes the default shell, which is specified in the SHELL environment variable. ! is also the factorial operator. (she contains multitudes ๐)
Complete documentation is available in HTML and PDF formats; see the local documentation directory or online at "http://mathomatic.org/math/doc/" for the latest Mathomatic documentation.
๐ ENVIRONMENT ๐
EDITORโ TheEDITORenvironment variable specifies which text editor to use for the edit command.
๐ FILES ๐
~/.mathomaticrcโ Optional startup file containing Mathomatic set command options. It should be a text file with one or more set options per line. For example, the line"no color"will make Mathomatic default to non-color mode, which is useful if you aren't using a supported color device.
๐ AUTHOR ๐
Mathomatic has been written by George Gesslein II (gesslein@mathomatic.org), with help from the Internet community. ๐ซก
๐ญ REPORTING BUGS ๐ญ
The command to take the limit of an expression is partially functional and experimental. All else should work perfectly; if not, please report it as a bug to the author or on the Launchpad website: "https://launchpad.net/mathomatic".
๐ง SEE ALSO ๐ง
rmath(1), matho-primes(1), primorial(1), matho-mult(1), matho-sum(1), matho-pascal(1), matho-sumsq(1)
and that's the whole page bestie, no notes, she ate ๐ this was the MATHOMATIC(1) page from the General Commands Manual, section 1 โ go forth and solve some equations, no cap โจ๐
๐ฆ where this page comes from
- debian bookworm: mathomatic 16.0.5-5 ยท LGPL-2.1-or-later
- debian trixie: mathomatic 16.0.5-5 ยท LGPL-2.1-or-later
- fedora 43: mathomatic 16.0.5-35.fc43 ยท LicenseRef-Callaway-LGPLv2
- fedora 44: mathomatic 16.0.5-36.fc44 ยท LicenseRef-Callaway-LGPLv2
- ubuntu jammy: mathomatic 16.0.5-4 ยท LGPL-2.1-or-later
- ubuntu noble: mathomatic 16.0.5-5 ยท LGPL-2.1-or-later
- ubuntu questing: mathomatic 16.0.5-5.1
- ubuntu resolute: mathomatic 16.0.5-5.1build1 ยท LGPL-2.1-or-later
- ubuntu stonking: mathomatic 16.0.5-5.1build1 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms