mathomatic

Langue: en

Version: 252379 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

mathomatic - a small computer algebra system

SYNOPSIS

mathomatic [ -bchqrstuvwx ] [ -m number ] [ input_files ]

DESCRIPTION

Mathomatic is a portable Computer Algebra System (CAS) and calculator software that can symbolically solve, simplify, combine, and compare equations, perform general complex number and polynomial arithmetic, etc. It does some calculus and handles all elementary algebra, except logarithms.

Mathomatic is entirely hand-written in optimized C. It does not permit extremely large expressions, which can take too much memory and time. Instead reliability, ease of use, and speed are its features.

All numerical arithmetic is double precision floating point with up to 14 decimal digits accuracy.

OPTIONS

-b
Enable bold colors. Color mode will be turned on and colors will be brighter if this option is specified.
-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 -b option to increase the brightness.
-h
Display a help message and exit.
-m number
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. Setting this higher than 100 is not recommended.
-q
Set quiet mode. The startup message 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.
-r
Disable readline input processing. Readline allows using the cursor keys and outputs terminal control codes which can be turned off with this option.
-s
Enable secure mode. This mode disallows shelling out and writing files, and was created for use on public servers that can't use the SECURE compile-time define.
-t
Set test mode. Used when testing and comparing output. Bypasses loading startup file, turns off color mode and readline, sets wide output mode, ignores pause command, etc.
-u
Guarantee that standard output and standard error output are unbuffered.
-v
Display version number, Mathomatic specific compile defines used, maximum possible memory usage, and license, then exit.
-w
Set wide output mode for an unlimited width output device. Sets infinite screen columns and rows so that 2D 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. The color mode and bold colors flags affect this mode, allowing HTML color output.

GENERAL

First you type in your algebraic equations in standard infix 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. If the command 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 ("!") 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.

Complete documentation is available in HTML format; see the local documentation directory or "http://mathomatic.org/math/doc/" for the latest Mathomatic documentation.

ENVIRONMENT

EDITOR
The EDITOR environment 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 set option per line. Do not include the word "set". For example, the line "no color" will make Mathomatic default to non-color mode, which is useful if you are not using a standard terminal emulator.

SEE ALSO

matho-primes(1), matho-pascal(1), matho-sumsq(1)

BUGS

The command to take the limit of an expression is partially functional and experimental. All else should work perfectly; if not, report it as a bug on the Ubuntu Launchpad website: "http://launchpad.net/mathomatic". Please include version information, which you can find by running mathomatic -v or by entering the version command.

AUTHOR

Mathomatic has been written by George Gesslein II <georgegesslein@gmail.com> and it's available under the terms and conditions of the GNU Lesser General Public License from "http://mathomatic.org".