msprpnr is an RPN-style calculator, that updates the result dynamically as you type the expression unlike, for example, dc.
The calculation engine is written in rust, compiled to webassembly, and it runs directly in the browser.
| A |
| Context | Action | Context | Action |
|---|---|---|---|
| num | Pushes the value onto the stack | ||
| num num + | Adds the two values | list + | Adds all the numbers in the list |
| num num - | Subtracts the two values | list - | Subtracts all the numbers in the list from the first |
| num num * | Multiplies the two values | list * | Multiplies all the values in the list |
| num num x | Alias for num num * | list x | Alias for list * |
| num num / | Divides the two values | list / | Divides the first value by all the others |
| num num ^ | Raises the first number to the power of the second | ||
| num num \ | Swaps the first two values on the stack | ||
| num . | Duplicates the first value on the stack | ||
| num num num @ | Rotates the first three values on the stack | ||
| num d | Pops the first value off the stack and discards it | ||
| num sin | Sine of the first value | ||
| num cos | Cosine of the first value | ||
| num tan | Tan of the first value | ||
| num abs | Absolute value of the first value | ||
| pi | The value pi | ||
| e | The value e | ||
| num ln | Natural logorithm of the first value | ||
| num num log | The logorithm of the first value in the base of the second | ||
| [ | Marks the beginning of a list | ||
| num ... ] | Creates a list containing the values up to the top of the stack or the first [ marker | ||
| list r | Reverses the list | ||
| list _ | Pushes all the values in the list directly onto the stack |
msprpnr is hosted on SourceForge