[2603.21852] All elementary functions from a single binary operator

💥 Explore this awesome post from Hacker News 📖

📂 **Category**:

✅ **What You’ll Learn**:

View a PDF of the paper titled All elementary functions from a single binary operator, by Andrzej Odrzywo⚡ek

View PDF
HTML (experimental)

Abstract:A single two-input gate suffices for all of Boolean logic in digital hardware. No comparable primitive has been known for continuous mathematics: computing elementary functions such as sin, cos, sqrt, and log has always required multiple distinct operations. Here I show that a single binary operator, eml(x,y)=exp(x)-ln(y), together with the constant 1, generates the standard repertoire of a scientific calculator. This includes constants such as e, pi, and i; arithmetic operations including addition, subtraction, multiplication, division, and exponentiation as well as the usual transcendental and algebraic functions. For example, exp(x)=eml(x,1), ln(x)=eml(1,eml(eml(1,x),1)), and likewise for all other operations. That such an operator exists was not anticipated; I found it by systematic exhaustive search and established constructively that it suffices for the concrete scientific-calculator basis. In EML (Exp-Minus-Log) form, every such expression becomes a binary tree of identical nodes, yielding a grammar as simple as S -> 1 | eml(S,S). This uniform structure also enables gradient-based symbolic regression: using EML trees as trainable circuits with standard optimizers (Adam), I demonstrate the feasibility of exact recovery of closed-form elementary functions from numerical data at shallow tree depths up to 4. The same architecture can fit arbitrary data, but when the generating law is elementary, it may recover the exact formula.

Submission history

From: Andrzej Odrzywolek [view email]
[v1]
Mon, 23 Mar 2026 11:40:24 UTC (1,393 KB)
[v2]
Sat, 4 Apr 2026 06:31:05 UTC (1,245 KB)

💬 **What’s your take?**
Share your thoughts in the comments below!

#️⃣ **#elementary #functions #single #binary #operator**

🕒 **Posted on**: 1776050247

🌟 **Want more?** Click here for more info! 🌟

By

Leave a Reply

Your email address will not be published. Required fields are marked *