View Source Cogito.Mathematical (Cogito v0.6.2)
Basic mathematical expressions parser with error handling.
Input examples
---(+ 10)
(1 + 2 + 3 - 4 + 5) - 4 * -10
3.14 / 100 * 10000 - (100.0 + (100.1 + 100.2))
((2 * (3 + 4) / 7) + 3) / -5
With awesome operations
1 min 2
10 + 20 max (100.5 min 29.9)
24 max 3 hypot 4 - 2
Variables
y max 3 hypot 4 - x
((x1 * (x2 + x3) / 7) + 3) / -x4