Author Topic: Mathomatic is a free, portable, general-purpose Computer Algebra System (CAS)  (Read 2550 times)

0 Members and 1 Guest are viewing this topic.

Software Santa

  • Administrator
  • *****
  • Posts: 4259
  • OS:
  • Mac OS X 10.6 Mac OS X 10.6
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
Mathomatic is a free, portable, general-purpose Computer Algebra System (CAS)

Mathomatic is a free, portable, general-purpose Computer Algebra System (CAS) that can automatically solve, differentiate, simplify, combine, and compare algebraic equations, perform standard, complex number, and polynomial arithmetic, etc. It does some calculus and is very easy to learn and use. Plotting expressions with gnuplot is also supported.

Welcome to The Home of Mathomatic

Mathomatic is a portable, command-line computer algebra system (CAS) written entirely in the C programming language. It is free and open source software, published under the GNU Lesser General Public License (LGPL version 2.1). The software can automatically solve, differentiate, simplify, combine, and compare algebraic equations, perform standard, complex number, and polynomial arithmetic, etc. It does some calculus and is very easy to compile, learn, and use.

Mathomatic consists of a text-mode, floating-point and symbolic math application and library suitable for desktops, handhelds, and embedded systems. It compiles and runs under any operating system with a C compiler, including Linux, Unix, and Mac OS X. An operating system is not required for using the symbolic math library, and there are no dependencies other than the standard C libraries. The mathematical results should always be correct, simple, beautiful, and as documented; if not, please report it on the Mathomatic project site on, or you can email the author for a quick response.

This is the official Mathomatic website, where you can download any version of Mathomatic, read the documentation, learn by example, and get free support.

The current version number is "15.3.7", released December 26, 2010; you can try it online, download it, or view the changelog.
What's new:

A new, nice looking, printable PDF Quick Reference Card for Mathomatic has been automatically created. Letter-sized and a single page, this card will provide useful command usage information for new or occasional users of Mathomatic.

There is a new, printable Mathomatic User Manual PDF file, too. It is 45 pages of goodness and useful information on Mathomatic and math.

Mathomatic version 15 has been streamlined and sensibly documented, and features improved simplification and expression display with less parentheses, so that the results displayed are the most beautiful and simplest possible. Mathomatic can now be used from shell scripts, with expressions and commands given on the shell command line or piped into it. Many bugs and inconsistencies were fixed, many cleanups were done, and utilities were added.

More version 15 features are:

    * The symbolic math library has stabilized, with all known problems and shortcomings fixed.
    * Plots and graphs with Gnuplot are now customizable.
    * Most commands are automatic and some are repeatable with the repeat command.
    * Integer variables are now specified by using a variable name that starts with "integer".
    * Allow raising both sides of an equation to a power, by solving for x^2 or 0^2, for example.
    * Building from source has been made user, developer, and package maintainer friendly.
    * The m4 version, which allows function entry, is improved and suitable for packaging now.
    * All documentation has been improved and is up-to-date.
    * The user interface and help command have been made more friendly.
    * All errors and warnings are now properly reported and handled.
    * Compatibility with previous versions was maintained.

Mathomatic Downloads

Here you can download the free source code, documentation, and binaries for version 15 of the Mathomatic computer algebra system.
The Mathomatic source code and documentation:

    * The bzip2 compressed, stable tarball (199 kilobytes) of the latest source code release: version 15.3.7; download it, then extract its contents into the current directory with the shell command: "tar xjf mathomatic-15.3.7.tar.bz2". Please read the file README.txt for compilation instructions.
    * The development source code and documentation in a compressed archive:, am.tgz, or am.tar.bz2, is also available at the mirror site:, am.tgz, or am.tar.bz2. Please note that should always be extracted into an empty directory.
    * View the current changelog, source code README.txt, or installation instructions. Mathomatic compiles correctly for any computer architecture, including 16, 32, and 64-bit word size CPUs.
    * Download the complete Mathomatic User's Manual in PDF format.
    * Previous official source releases are archived on and

A C compiler is not required to run the following Mathomatic binaries:

    * The following Linux distributions: Gentoo, Slackware, Fedora, Debian, and Ubuntu actively maintain an official Mathomatic package. You can use your operating system's package manager to install Mathomatic in those cases. Thanks to all the individual port maintainers for porting, and keeping the Mathomatic packages updated and shipshape! Mathomatic packages are available for most BSD Unix distributions, too.
    * Mathomatic as a free, stand-alone, statically linked, universal binary for any x86 Linux computer; extract it within a terminal emulator (shell window) by typing "unzip", then run it by typing "./mathomatic" to do symbolic mathematics! Also available is an x86-64-bit universal binary for Linux and a version with readline functionality from a third party. Readline allows using the cursor keys.
    * The free, universal binary for any version of Mac OS X, downloadable as a Mac disk image file mac_mathomatic.dmg or a ZIP file; open it, then double click on the icon named mathomatic (or mathomatic64 for the faster 64-bit version) to run the interactive Mathomatic application. Runs best from the Mac Terminal application. There is an associated PAD file for distributors.
    * Check your math and homework with Mathomatic for the iPhone, iPad, and iPod Touch. It is ported, developed, and sold by Ben Gotow. Not free, but has a Graphical User Interface (GUI).
    * The old, free, Mathomatic version 15.1.5 binary for Microsoft Windows was created by Gordon McKinney. Download the 1 megabyte ZIP archive, extract all files, and launch winam/mathomatic.exe to run Mathomatic. Alternatively, it is available here. The MD5 checksum for is 9e42a5b8d655c5856430aa07e778edb2.

There is no need to download anything to access Mathomatic online:

    * as a web service. Works with any web browser. 

About Mathomatic

If c2 = a2 + b2, then what do a, b, and c equal? Mathomatic is a colorful algebra calculator that can automatically solve, simplify, and calculate mathematical formulas with many variables, etc.

Expressions and equations are entered in standard algebraic (infix) notation by typing, pasting, or reading them in. Operations are performed on them by entering simple English commands. Equations are quickly solved for any variable by typing the name of the variable to solve for at the main prompt, or by using the solve command. The result can then be completely simplified by typing "simplify", which runs the simplify command on the current equation. Values can be plugged into the formula, and the result approximated, by entering the calculate command.

Mathomatic can symbolically:

    * combine and solve equations,
    * completely simplify and compare mathematical expressions and equations,
    * do simple calculus transformations and series,
    * perform quick real number, imaginary number, and polynomial arithmetic and GCD computations,
    * generate optimized C, Java, or Python language code from simplified equations,
    * plot expressions with Gnuplot in two or three dimensions,
    * … and much more.

This software is designed to be as easy to learn and use as possible, and as such, has no programming capability. It implements the standard rules of algebra for symbolic addition (+), subtraction (−), multiplication (*), division (/), modulo division (%), and exponentiation (^ or **, including roots). The numeric arithmetic is double precision floating point with about 14 decimal digits accuracy. Many results will be exact, because multiple floating point numbers can be combined for a single mathematical value; for example: 2^(1/3), which is the cubed root of 2 exactly.

It is hoped that Mathomatic will be educational and show the true, perfect beauty that is conventional mathematics, and be a reliable calculating tool, too. Currently Mathomatic is only available in English without Unicode support. Translations are welcome.

Not currently implemented in Mathomatic are a graphical user interface (GUI), general functions like f(x), logarithms, arbitrary-precision and interval arithmetic, and matrices; these capabilities are available in a full-featured CAS like Maxima.
« Last Edit: February 23, 2014, 03:39:57 PM by Software Santa »