This mini-project was inspired by the Numberphile video A Two-Button Calculator That Does Everything - Numberphile featuring Dr James Grime, which explores a paper by Andrzej Odrzywołek describing how to reduce all possible calculations to a single operator.
In the video, Dr. Grime describes an imaginary scenario where you are in a test and one of the buttons on your scientific calculators has broken. The question then becomes: what are the minimum number of buttons you need in order to make all possible calculations?
Turns out the number is just 4:
Grime goes on to explain that using a special operator described by Odrzywołek, we can switch to just 2 buttons:
EML(x,y) -> ℯx − ln y
Source Code: github.com/JordanReiter/eml-calculator
Article: Odrzywołek, A (2026). All elementary functions from a single operator. arXiv:2603.21852v2.
Video: A Two-Button Calculator That Does Everything - Numberphile
This tree rewrites the source expression using only the eml operator and the constant 1. Each eml node combines two children. Hover a node, or focus it with the keyboard, to see the value computed when the page was generated.
Source expression: pi/e
Value: 1.15572734979
Node count: 259