msprpnr

Introduction

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.

Demo

A

Command Reference

ContextActionContextAction
numPushes the value onto the stack
num num +Adds the two valueslist +Adds all the numbers in the list
num num -Subtracts the two valueslist -Subtracts all the numbers in the list from the first
num num *Multiplies the two valueslist *Multiplies all the values in the list
num num xAlias for num num *list xAlias for list *
num num /Divides the two valueslist /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 dPops the first value off the stack and discards it
num sinSine of the first value
num cosCosine of the first value
num tanTan of the first value
num absAbsolute value of the first value
piThe value pi
eThe value e
num lnNatural logorithm of the first value
num num logThe 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 rReverses the list
list _Pushes all the values in the list directly onto the stack

Footer

msprpnr is hosted on SourceForge