calculator by Reverse Polish Notation.
make
In terminal, execute calc file.
./calc
10 + 5
10+5
3*(4+6)-7
sin(45+30) + cos45 + tan(90 / (4 - 2))
10.5*sin(2.5*100)
$abc = 20 * 3
$abc / 4
2 * $prev + 10
Enter quit
or quit()
- Four arithmetic operations
- Brackets
- Trigonometric functions
- Variable