A math interpreter written in Syphon, previously was in PHP
You only need the latest version of Syphon
$ ./bin/lamath
>> 5 + 5
10
- The numbers are reperesentated as Syphon floats
- A math expression is a step, and the whole line of expressions is a procedure
- Steps are separated by space
The available unary operators are:
-
[-]
-
-: Negation
The available binary operators are:
- [+, -, /, *, **]
- +: Addition
- -: Subtraction
- /: Division
- *: Multiplication
- **: Exponentation