An open API service indexing awesome lists of open source software.

https://github.com/ntdls/cmathparser

A fairly robust mathematics parsing engine for C++ projects.
https://github.com/ntdls/cmathparser

evaluation expression-parser library math mathematics parsing showcase

Last synced: 22 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/NTDLS/CMathParser/blob/master/%40TestApp/Entry.Cpp)

It addition to the custom functions and variables, these 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.

If you came for the C# version you can find it at: [NTDLS.ExpressionParser](https://github.com/NTDLS/NTDLS.ExpressionParser/)

**Basic example usage:**

![image](https://user-images.githubusercontent.com/11428567/234915977-11d688c5-abdb-43b1-8565-bf432a7ec60b.png)

**Basic example result:**

![image](https://user-images.githubusercontent.com/11428567/234916103-089515a5-e2b6-489c-9693-5f02cce0dbf1.png)

![image](https://github.com/NTDLS/CMathParser/assets/11428567/6122251b-8812-4ceb-b3d4-87c1f9131f30)