Rpn

From icesus
Jump to navigation Jump to search
This is reverse polish notation calculator.
Usage:     rpn [number | operator ...]
Example1   'rpn 2 3 +' will add 2 and 3. (2+3)
Example2   'rpn 2 3 4 + *' will add 3 and 4 and multiply with 2. (3+4)*2

Operators: / ^ % - + *
Functions: sqrt log random cos negate tan acos sin exp atan asin
Constants: e pi EUR
All angles are in radians.