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.
- Host: GitHub
- URL: https://github.com/ntdls/cmathparser
- Owner: NTDLS
- License: mit
- Created: 2018-04-10T01:59:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-14T06:09:00.000Z (5 months ago)
- Last Synced: 2025-03-27T21:22:50.688Z (about 1 month ago)
- Topics: evaluation, expression-parser, library, math, mathematics, parsing, showcase
- Language: C++
- Homepage:
- Size: 93.8 KB
- Stars: 20
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:**

**Basic example result:**

