muParser is an extensible high performance math parser library written in C++. It is based on transforming an expression into a bytecode and precalculating constant parts of it.