GNU libmatheval

 [image of the Head of a GNU]

Table of Contents

Introduction to libmatheval

GNU libmatheval is a library (callable from C and Fortran) to parse and evaluate symbolic expressions input as text. It supports expressions in any number of variables of arbitrary names, decimal and symbolic constants, basic unary and binary operators, and elementary mathematical functions. In addition to parsing and evaluation, libmatheval can also compute symbolic derivatives and output expressions to strings.

Downloading libmatheval

GNU libmatheval can be found on (via HTTP) and (via FTP). It can also be found on one of GNU FTP mirrors.

GNU libmatheval development sources from CVS repository are available for browsing through corresponding Savannah Web interface. Sources could be also fetched from repository by CVS command:

cvs -z3 co libmatheval

For other ways to obtain GNU libmatheval, please see How to get GNU Software.


The GNU libmatheval manual is avaialable online in number of formats.

Further information

The GNU libmatheval Savannah page has some additional information about GNU libmatheval.

GNU libmatheval bug reports and fixes, as well as improvement suggestions, should be directed to bug-libmatheval mailing list.

GNU project incorporates some other libraries related to mathematical calculations. Most notable of these is GNU Scientific Library.

Return to GNU's home page.

Please send FSF & GNU inquiries & questions to There are also other ways to contact the FSF.

Please send comments on these web pages to, send other questions to

Copyright © 2003, 2004, 2005, 2006 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Updated: $Date: 2006/11/24 06:13:00 $ $Author: ramprasadb $