Basic formulas interpreter
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>
+
, -
, /
, *
) and power (^
)E
, PI
)(…)(…)
instead of (…)*(…)
), various alternatives⋅
or ×
instead of *
, ÷
instead of /
).
formula -2+3 # 1
formula "((42-5)(12*3+2))^3" # 2779431416
formula PI*1.5 # 4.71238898038469