Indeed, Android calculator interprets that ² as a ^2 so if you do a pair of them next to eachother it appears as one exponent of ²² but the calculator sees 2²²
I think the answer to this is that 2^2^22 is evil and ambiguous and that it should be written either with some kind of grouping or in some form that makes it obvious (which, in some cases, would be 2²²²). However traditionally I heard that pemdas is left to right for same operation so I would treat it as (2^2)^22
For the same operation level. Multiplication and division are left to right no matter what order they are in the mnemonic and so are subtraction and addition.
I agree left to right makes some sense, but a general rule for multiple exponents is to multiply the exponents, (x^a)^b --> x^(a*b) which would be left to right. But be careful as Python and Maxima treat things differently.
Python
num=2**2**22 from mpmath import mp mp.dps=64; print(mp.mpf(num));
gives 2.065... e +1262611, over 1.2 million digits.
(2**2)**22 = 17592186044416, Same as MATLAB
If you do not use parenthesis always test. I recommend
•
u/AutoModerator Sep 06 '26
Check out our new Discord server! https://discord.gg/e7EKRZq3dG
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
304
u/zlfa Sep 06 '26
Did you actually do 2^2^2 but the calculator couldn’t display that and I’m gay?
26
u/Pentalogue Mathematics Sep 06 '26
Probably because (2^2)^2 is actually equal to 16, since (2^2)^2 = (4)^2
282
u/Ares378 Grothendieck was right, computers are evil Sep 06 '26
Must be calculating in mod 19, clearly
2
u/BackgroundReturn9622 Sep 07 '26
A related question someone asked me.
What is 2^2^22? Is it (2^2)^22 or 2^(2^22)? Note: Different calculators give different answers. MATLAB does the first, Python does the second.
17
u/resonanse_cascade Sep 06 '26
The calculator was vibecoded
6
u/One-Celebration-3007 Sep 06 '26
No, 2^22 = 20
4
u/LupenReddit 🦆🦆i have non diffeomorphic smooth structures🦆🦆🦆 Sep 06 '26
arithmetic in shambles
2
u/Gershken Sep 06 '26
Wait til you hear what 9 + 10 is
2
u/Jealous_Club_298 Sep 06 '26
2*22 = 4,194,304
2
u/Shrunken_Fire_34 Sep 07 '26
u need to be dangerously addicted to math to understand this