sci-mathematics muParser is a C++ library for mathematical expression parsing. It is based on transforming an expression into a bytecode and precalculating constant parts of it.