GNU libmatheval is comprised of several procedures that make it possible to create in-memory tree representations of mathematical functions over single or multiple variables and later use them to evaluate function for specified variable values, to create a corresponding tree for function derivatives over a specified variable, or to print a textual representation of the in-memory tree to a specified string. The library supports arbitrary variable names in expressions, decimal constants, basic unary and binary operators, and elementary mathematical functions.

WWW: https://www.gnu.org/software/libmatheval/
