Five RPN simulators — when there is no ROM, there is still the manual

Portfolio

PA
∇⋅E = ρ/ε₀
E = mc²
S = k log W
F = ma
All posts

Shipping

The HP 12C, 17bII+, 15C, 32SII and 35s rewritten from HP's manuals, then checked against every single one of their examples.

Platforms
iPhone, iPad, Mac
Machines
HP 12C and HP 17bII+ (financial), HP 15C, HP 32SII and HP 35s (scientific)
Method
Rewritten from the manuals, validated against their examples

The problem

For three HP machines, emulation is possible: their firmware exists and can be run. For five others — the financiers' 12C, the 17bII+, the scientific 15C, 32SII and 35s — no ROM is available. Yet those are precisely the ones still in daily use, the ones whose answers people know by heart.

What I built

Five simulators written from the only reliable source left: HP's manuals. Every function was rewritten from its definition, then checked against every example the manual gives — and an HP manual gives many. Same digits, same rounding, same error messages, same prompts. Where the original machine shows a ten-digit result whose last digit surprises you, the simulator shows the same one, last digit included.

What was hard

These calculators do not compute in binary but in decimal, on a fixed number of digits, and their rounding is part of their identity. Reproducing a result to ten significant digits means writing your own arithmetic rather than borrowing the processor's. The financial functions are worse still: the internal rate of return is solved by iteration, and HP chose its own way to converge — another way, equally correct, gives a different final digit.

Where it stands

All five ship on the App Store for iPhone, iPad and Mac. Together with the three emulators they complete the eight calculators of the RPN family.