MathParser

Evaluate math expressions from strings at runtime on Arduino and ESP32.

Author
Meer Zafarullah Noohani
Website
https://github.com/meerzafarnoohani/MathParser
Category
Data Processing
License
MIT
Library Type
Contributed
Architectures
esp32, avr, samd, rp2040, *

MathParser parses and evaluates math expression strings at runtime with no dependencies beyond math.h. Supports all standard operators (+,-,*,/,^,%), built-in functions (sin, cos, sqrt, log, pow, abs, ceil, floor, round, atan2 and more), built-in constants (pi, e), user-defined variables bound by pointer, and custom user functions (0-3 arguments). Ideal for config-driven formulas, user-entered expressions, sensor calibration curves, and dynamic thresholds stored in EEPROM or SPIFFS.

Downloads

Filename Release Date File Size
MathParser-1.0.0.zip 2026-05-05 13.85 KiB