Do the two buttons include a reset button so you can go back to the beginning again when you go wrong with the long sequence of presses?
Physicist reckons two-button calculator can do all elementary math
Every now and then, a researcher comes up with something that sounds either wrong or unoriginal to outsiders – yet carries just enough of a chance of being correct, novel, and consequential to demand a closer look. On this occasion, the honor goes to Andrzej Odrzywołek, a postdoctoral researcher at the Institute of Theoretical …
COMMENTS
-
-
-
Wednesday 15th April 2026 19:36 GMT Anonymous Coward
As part of my degree, I learned 68000 machine code on an SBC that consisted of a 68K processor, a few K of RAM, a numeric keypad and an 8 digit VFD display.. No other storage
I *think* was called a flight board, but it was 30 years ago.
The reason we used these boards rather than one of the hundreds of PCs the Uni had? A couple, actually. First, the lecturer thought 68K code was more logical, therefore easier to learn than x86. Second, the lack of memory, no storage, and cumbersome input forced us to reduce the amount of mistakes we made, and code efficiently.
I think a few modern coders could do with experiencing something like that. We might end up with more efficient software.
-
-
This post has been deleted by its author
-
-
Tuesday 14th April 2026 17:27 GMT steelpillow
Brainfuck
One button for 0, the other for 1. As long as you know the length of the binary word, you're well away.
Cheating? So how about three presses to enter a character in Brainfuck. Also Turing complete, and processor independent to boot, but a whole 8 characters to choose from.
Also cheating? So how come this bright idea isn't?
-
Tuesday 14th April 2026 17:43 GMT Spansh
This sounds very similar to the ultumate RISC CPU with only a single instruction of subtract and branch if negative. I was told about that over 20 years ago. Looking at Wikipedia it seems there are other options too.
https://en.wikipedia.org/wiki/One-instruction_set_computer#Subtract_and_branch_if_negative
An interesting thought experiment, but ultimately not useful.
-
-
Wednesday 15th April 2026 05:58 GMT Bebu sa Ware
Re: Godel, Escher, Bach...
Interestingly EGB was written against a background of another rather more rational flush of "AI."
Still very readable especially for the extracts from Lem's Cyberiad if you have read his work.
The introduction to formal systems is extremely gentle and effective.
I lent/lost my copy - probably 1st ed. too - years ago. :(
-
Wednesday 15th April 2026 10:57 GMT DaveK23
I lent/lost my copy
I was 11 when it came out. I stayed up all night reading my dad's copy and fell asleep. When I woke up, my angle-poise lamp had swivelled down and landed on it, charring a big burnt hole through many pages! (Hence the flames icon!)
It also prompted me to read my dad's copy of the Cyberiad too. Klapaucius and Trurl were my heroes!
-
-
Thursday 16th April 2026 07:19 GMT Anonymous Coward
Re: Godel, Escher, Bach...
SUBLEQs are a fun way of learning a new language. And generally exploring computing principles.
I made one in powershell as a toy... one input register, one output register, one instruction...
with instead of a tape or a stack, it has a 2D memory grid, and a 2D program counter, and branch means turn left or right.
one load instruction, one store. and one magic function that says jump to another 2D grid, so you can have function calls.
it's a massive pain in the arse to code for. but i got functions for INC, DEC, ABS, MIN, MAX, ADD, MULT, DIV, REMAINDER and MOD
MULT is fun. because of the way you have to loop around the grid doing repeated addition, 2 * 5 (2 loops adding 5) is a lot faster than 5 * 2 (5 loops adding 2), so the MIN and MAX functions are used to optimize the order of operands to speed it up.
Fun. But useless. Would be way easier with a stack. But that would defeat the point of the toy.
-
-
-
Wednesday 15th April 2026 07:47 GMT Lee D
Correct.
However, they often prove extremely useful in terms of working out what's possible and not (computability), and in boiling down functions to primitives which are much easier to prove, manipulate, derive, etc.
This is more akin to finding an "all integers can be expressed as the product of primes" kind of answer, but for literal mathematical operations.
It's not rigorous mathematics, it reads far more like a PhD etc. student who's ran off and found something particularly interesting that nobody has done before, but by the look of it (as just a maths grad) it looks like it would have uses in analysing mathematical operations, forming new ones, boiling them down, linking other proofs together, etc.
I like it. I'm gonna read it properly over the weekend, just because I like it. And, honestly, that's the BEST kind of maths, which people who don't enjoy maths will never understand. It might be wrong. It might be right. It might be useful. It might be worthless. It might form a whole new area of mathematics or computer science (which is really just applied maths...). But whatever it is, it's quite simple, elegant, not obvious, and yet could prove useful.
-
-
Tuesday 14th April 2026 21:42 GMT goblinski
Can't help but remembering how genius my ZX Spectrum's keyboard was supposed to be, what with the preprogrammed BASIC commands on it, and how amazingly idiotic the one-button remote control on my RC Porsche 928 was. The one with the L/R and F/R joysticks was like 30% more expensive.
I am to this day proud I remember how the one-button remote worked. Mostly.
-
-
Wednesday 15th April 2026 03:36 GMT cageordie
You just need something to decode the bitstream and perform the actions.
So... this is like a data pin and a clock. What I am doing now just ends up as a series of 1s and 0s. So sure. I can send "arctan(0.245)=" and it can cough out the answer. Of course there's the problem that it isn't in any way useful. You could do it in morse code too. Lots of people have shown they can use that. This is one of those things that's trivially true but also pointless.
-
Wednesday 15th April 2026 23:37 GMT Simon Harris
Re: You just need something to decode the bitstream and perform the actions.
But in a digital system the value you get for arctan(0.245) is going to be an approximation, even 0.245 itself could be an approximation.
What the paper here is trying to do is synthesise mathematical functions from a single type of building block. If you could make arctan(x) out of such a collection of blocks, and feed 0.245 into it, mathematically you would get exactly arctan(0.245) out. Further, if exp and ln are defined for complex numbers, your synthesised function should mathematically work on complex numbers too.
-
-
Wednesday 15th April 2026 08:06 GMT Doctor Evil
Astonishing, really!
"The two-input gate also produces constants including π, e (Euler's number, 2.71828...), and i (the square root of minus one)."
This is pure genius. No calculator that I have ever owned -- even the estimable HP-15C -- has been able to show me even an approximation of the square root of minus one as a real number, which is what "produces constants" here would seem to imply.
The HP did handle complex math, but that's rather another matter ...
-
Wednesday 15th April 2026 10:30 GMT Peter Gathercole
Re: Astonishing, really!
I know of several other calculators that could work with imaginary numbers. I think that the Texas SR52 could, and I know that the Commodore SR4190R could because I had one, and I also think that at least one of the Casio calculators in the wallet with a secondary keyboard on the flap (FX-450?) also had this capability.
I don't have any of these calculators any more, unfortunately. The Texas SR52 was my older brother's, I lost the Casio one holiday in a way that was always a mystery to me, and the Commodore was cleared out of my parents house (along with original recordings of the first broadcast of the Hitchhikers Guide to the Galaxy radio show - something I will never forgive) when they downsized.
-
Wednesday 15th April 2026 13:42 GMT Simon Harris
Re: Astonishing, really!
Not the fx450 - the flap there was just for standard scientific functions and hex digits (or the fx451, which was basically a fx450 with solar panels that worked other than at mid-day in the Sahara). It could do polar<->rectangular conversion, which you may be thinking of on that panel, but didn't have complex numbers.
The fx991 series is apparently the Casio to go to for complex numbers these days. Historically it was the fx100D and fx570D.
-
-
-
-
Wednesday 15th April 2026 10:06 GMT Bebu sa Ware
Re: My slider rule...
The distance between the venerable slipstick and your common garden variety dipstick possibly not that great.
I don't doubt that there is some probably deep mathematical cleverness, blindingly obvious to the pure mathematician - if not the applied - but to my naive eye I am not sure that heavy lifting isn't being done by Euler's e¡θ = cos θ + ¡sin θ (⇒e¡π =–1)
My guess is that you can go a fair way with any g(x, y) =def f(x) ★ f–1(y) The choice of binary operator ★ probably the more crucial of f,★ but some journeys are also merely a distraction. ;)
-
-
Wednesday 15th April 2026 08:27 GMT Torben Mogensen
Unicode
You can type in any mathematical formula using Unicode characters, and using, for example, UTF-8 encoding, you can type in the bits of any character sequence using only two buttons. So two buttons suffice to write any mathematical formula. I don't see much new here -- we all know that everything can be encoded as bit sequences.
-
Wednesday 15th April 2026 09:47 GMT Lee D
Re: Unicode
Because that's a real dumb summary that they've used in the article.
The fact that you can, from two universal mathematical concepts - a function and a digit 1 - form mathematical functions as complex as trigonometry, transcendental constants, etc. in just a few steps is what's useful.
It could also mean that you could - if it is universal - break down any formulae into a small, compact binary tree of those two elements combined, which would also be useful to prove equivalence / equality between different formulae, etc.
If it can indeed be formally proven, and it can be expanded to even a majority of mathematical functions, then we could see it pop up in proof systems and the like.
Nobody is going to sit there calculating logs and exponentials to find "2", that's not what it's for.
But if you can build all of maths from 2 simple building blocks, and arrange all formulae to fit into a compact binary tree, you can start pulling patterns, finding equivalents, finding routes through that tree's "graph" (mathematical, from graph theory) to find connections, etc.
-
-
Wednesday 15th April 2026 08:30 GMT sarusa
Technically you can do this with just one button
As long as we're getting this ridiculous and absolutely not humanly doable, you just need to assign long press to 1 and short press to 0, and then you use 16 bits (float) for arguments and 16 bits for operator and then do RPN with that. If you want to argue 16 bits isn't enough precision, fine, make it 32 or 80, or make the first couple bits a length indicator so you can variable length tokens.
All you need is the MOV instruction on x86 to be Turing complete if you don't care how tedious and crazy and slow it is.
-
Wednesday 15th April 2026 13:37 GMT FIA
Okay, it's bugging me now... does anyone know what make/model of calculator that is in the article image?
What's the 'sen' button?
Is it AI?
Oh... no... I googled. It turns out it's a Spanish layout, probably a Casio fx-991SP X II?
Well, I've been culturally enriched for the day, cheers. :)
-
Thursday 16th April 2026 07:10 GMT Pulled Tea
Wait, isn't this… kind of like… Gödel Numbering?
Like, you could do at least a good fraction of mathematics (if not all or most of mathematics) as a series of two symbols, which means it can be transcribed as a binary digit (0s and 1s), which means it can be represented as a binary number, which means it can be represented as a natural number, which means it's basically Gödel Numbering?
I mean, it's not practical — the discrete maths version of it is Church encoding, but the fact that this can represent transcendental and irrational numbers is pretty cool. Plus, if you can represent this as a electronic circuit, that means you can encode a good part of maths into circuitry.
The real question would now be what isn't represented.
-
Friday 17th April 2026 13:20 GMT Graham Cobb
Re: Wait, isn't this… kind of like… Gödel Numbering?
The real question would now be what isn't represented.
Indeed - that was my first thought when I saw the article. Just like pairs of integers (with a division function) allows you to represent all rational numbers - but no irrational numbers (sqrt(2) for example is easy to prove is not included). So what class of numbers cannot be represented with this scheme?
-
-
Thursday 16th April 2026 08:07 GMT anthonyhegedus
Morse?
You could do it all with just one button and issue commands to it in morse code.
I'm still struggling to understand the real-world application and practicality of this.
.-- .... .- - / .. ... / -.--. . / - --- / - .... . / .--. --- .-- . .-. / --- ..-. / .--. .. / - .. -- . ... / .. -.--.- / .-.-. .----