One binary operator replaces every calculator button
Snaplyze Digest
R&D advanced 2 min read Apr 13, 2026 Updated Apr 14, 2026

One binary operator replaces every calculator button

“The NAND gate for continuous math just got discovered — one operator, one constant, every calculator function.”

In Short

A single operator eml(x,y) = exp(x) − ln(y), paired with constant 1, generates every elementary function — arithmetic, trig, logarithms, constants like π and i. Think of it as the NAND gate for continuous math: one repeatable element suffices, but simple operations like multiplication balloon into depth-8 binary trees with 41+ nodes. The paper drew 375 points and 101 comments on Hacker News, split between excitement about theoretical elegance and skepticism about practical cost.

mathematicssymbolic-computationresearch-paperelementary-functionsnand-gate-analogy
Why It Matters
The practical pain point this digest is really about.

You know that elementary functions — sin, cos, log, sqrt, exponentiation — each need their own dedicated implementation in hardware, libraries, and calculators. They seem like fundamentally different operations. Boolean logic solved this decades ago with NAND: one gate type builds every digital circuit. Continuous math had no equivalent. You carry a bag of 36+ distinct primitives when, theoretically, far fewer might suffice — but nobody knew the minimum.

How It Works
The mechanism, architecture, or workflow behind it.

Define eml(x,y) = exp(x) − ln(y). Feed it the constant 1 as a seed. Iteratively bootstrap: eml(1,1) = e, eml(x,1) = exp(x), eml(1, eml(eml(1,x),1)) = ln(x), and so on through subtraction, negation, reciprocal, multiplication, division, trigonometric functions via Euler's formula, and all 36 standard calculator operations. The search used algebraically independent transcendental constants (Euler-Mascheroni γ, Glaisher-Kinkelin A) as test inputs with an inverse symbolic calculator to discover candidate formulas. The grammar reduces to S → 1 | eml(S,S) — every expression is a binary tree of identical nodes.

Key Takeaways
5 fast bullets that make the core value obvious.
  • Single-operator universality — eml(x,y) = exp(x) − ln(y) plus constant 1 replaces all 36 elementary calculator primitives, giving you a minimal grammar S → 1 | eml(S,S) for every elementary expression
  • Gradient-based symbolic regression — parameterized EML trees trained with Adam optimizer can recover exact closed-form elementary functions from numerical data at tree depths up to 4
  • Cousin operators exist — EDL(x,y) = exp(x)/ln(y) with constant e, and ln(x) − exp(y) with constant −∞, also form complete bases, showing EML is not unique
  • Constructive proof — the paper provides explicit EML expressions for all 36 primitives, verifiable in Mathematica, IEEE754 C, NumPy, and PyTorch
  • Analog circuit mapping — every EML expression is a uniform binary tree of identical nodes, directly mappable to analog circuits with a single EML gate element
Should You Care?
Audience fit, decision signal, and the original source in one place.

Who It Is For

If you work in symbolic computation, computer algebra, or theoretical mathematics, this is a foundational result worth studying. If you build numerical libraries or scientific computing tools, the symbolic regression angle (trainable EML trees for formula discovery) is the most immediately relevant application. Not useful if you need efficient numerical computation — the expression blow-up makes ...

Worth Exploring?

Worth reading for the theoretical result alone — it is genuinely surprising that a single binary operator suffices for all elementary math. The symbolic regression application (Section 4.3) is experimental: the author demonstrates exact recovery of elementary functions at shallow tree depths, but the EML compiler itself is described as an "unoptimized prototype" and direct searches timed out for several functions. This is an early-stage research result, not a production tool. Watch for follow-up work on the ternary variant that requires no constant.

View original source
What the full digest unlocks

There is more here than the public preview.

This page gives you the hook. The full Snaplyze digest goes deeper so you can move from curiosity to decision with less noise.

Open the full digest to read the deeper breakdown, compare viewpoints, and get the practical next-step playbooks.

Open the full digest

Snaplyze

Go beyond the preview

Read the full digest for deep-dive insight, Easy Mode, Pro Mode, and practical playbooks you can actually use.

Install Snaplyze