CMathParser icon indicating copy to clipboard operation
CMathParser copied to clipboard

A fairly robust mathematics parsing engine for C++ projects.

CMathParser

A fairly robust mathematics parsing engine for C++ projects which supports all standard mathematical operations for integer, decimal (floating point), logic and bitwise.

Other features include ability for the engine to show its work and the support for custom functions and variables using method callbacks. Lots of example included in: Entry.cpp

It addition to the custom functions and variables, thse are built in: ACOS, ASIN, ATAN, ATAN2, LDEXP, SINH, COSH, TANH, LOG, LOG10, EXP, MODPOW, SQRT, POW, FLOOR, CEIL, NOT, AVG, SUM, TAN, ATAN, SIN, COS, ABS.

Basic example usage:

image

Basic example result:

image

image