jscalc documentation
--------------------

jscalc is a Reverse Polish calculator written by James Stanley. It is not
intended for actual use, but rather as a means for me to learn Reverse Polish
Notation.

Note that jscalc is accurate to at MOST 16 decimal places. I advise you never
to trust it for even slightly important calculations.

If you don't know RPN already, trying to operate rpncalc is a futile exercise.
The wikipedia article (http://en.wikipedia.org/wiki/Reverse_Polish_notation)
may help you.

Operations
----------

jscalc supports a fairly random selection of operations (anything
I've ever needed and felt like implementing). Each operation acts on the
top-most values in the stack and places it's result on the top of the stack.
Non-commutative operations work in the correct order ('1, 2, /' returns 0.5).

^	Exponentiation, accepts fractional and negative powers ('2, 8, ^'
	returns 256)
+ 	Adds two values
- 	Subtracts two values ('1, 2, -' returns -1)
* 	Multiplies two values
/ 	Divides two values ('1, 2, /' returns 0.5)
clr     Clears the stack
dump 	Dumps the stack without popping any values
e 	Pushes Euler's number on to the stack
pi	Pushes Pi on to the stack
pop	Pops a value off the stack
quit	Quits
sqrt	Returns the square root of a value
root	Returns an arbitrary root of a value, with the number and the root
	pushed in that order ('144, 2, root' returns 12)
