Extension:RpnCalc

The RpnCalc extension allows mathematics via a RPN (Reverse Polish Notation) calculator MediaWiki extension.

Features

 * Allows long and complex expressions
 * Exposes several useful php functions
 * Allows local variable assignment
 * Allows page variable assignment and reusage in other blocks

Install
Create a file called 'RpnCalc.php' in your  directory, and add the following code... Then simply add the following line to the end of your  file: and you are ready to go! Go to the sandbox and see if it works!

Obs.: If you are using php4, comment the try and catch lines.

Usage
The following code describes the usage of this extension (which you are invited to extend (and improve!) via the very simple code design ;-)