Stack-machine calculator. Type 2 100 ^ p to compute 2¹⁰⁰. Operators: +-*/%^. p prints the top, f prints the whole stack, c clears, d duplicates. Negative literals start with _ (e.g. _5). Spaces separate tokens.
Try these
Stack
(empty)
Stack depth
0
Top
—
Algorithm: stack machine driving the bigint/ubigint classes
from src/ubigint.cpp.
Fixed several arithmetic bugs in the original course code —
see commit history for details.