This is an interpreter for basic formulas, based on an original idea by @tsalmon.
Note: this is an old, unmaintained project.
formula <file> formula <formula>
- Floats & integers, negative and positive numbers
- basic operations (
*) and power (
- constants (
- some syntaxic sugar (e.g.
(…)*(…)), various alternatives for some operations (e.g.
formula -2+3 # 1 formula "((42-5)(12*3+2))^3" # 2779431416 formula PI*1.5 # 4.71238898038469