Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 507 Bytes

A simple Reverse Polish Notation, or postfix style calculator.

Usage:

posty [-v]
	-v	enable stack dumps (for debugging)

In interactive mode, you have two choices:

  • Enter a postfix style expression to be evaluated (supports +, -, /, *, ^, %)
  • Advanced functions: sqrt, sin, cos, tan, asin, acos, atan
  • Support for constants: pi and e
  • Enter :N to set decimal precision, where N is the number of digits displayed to the right of the decimal. Note that this can also be part of an expression.