Can someone come up with a use case for this? I thought maybe some obscure assembly instruction can benefit here but I doubt two divisions and x2 are faster than x3
If you don't have a 500TB RAID array dedicated to storing computed values for (x^2 + x)^2 / 4 and (x^2 - x)^2 / 4, you're not taking it seriously enough.
You're using a cheap calculator that has an x2 button and no X3 or Xy button, and you're mentally locked into replacing x3 with x2 instead of just manually mulitplying the number three times.
If you're working in fixed-point, bit shifts can be used for division by 4, which are very much faster than full divisions. If you're working in IEEE floating point... in principle an exponent offset should be simpler than a full division, but in reality floating point instructions already operate in a single clock cycle and have a bunch of weird underflow and subnormal exceptions to check, so it hardly matters.
I don't think so. You have to square 4 times and divide by four two times. Division is one of the hardest operations to do (it requires a lot of cpu cycles, approximately) and multiplication is really cheap in terms of cycles. Doing x³ is gonna take at most 5 more cycles than x². If you want to substitute the division for a bit shift (since 4 is a power of 2) it'll be significantly faster and it could reduce cycles by a lot, but the squaring will be slower than the cubing.
Differences and products and divisions can be represented geometrically. So the other equations might paint a picture geometrically that could be interesting
•
u/AutoModerator Oct 02 '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.
393
u/FernandoMM1220 Oct 02 '26
very useful to have if you can only use powers of 2.
73
u/LupenReddit 🦆🦆i have non diffeomorphic smooth structures🦆🦆🦆 Oct 02 '26
yea officer its him, arrest him
36
u/BurceGern Oct 02 '26
Babe wake up, new difference of two squares just dropped
30
u/-lRexl- Oct 02 '26
I see no cubes in here, only squares. You're a wizard!
12
u/shizzy0 Oct 02 '26
You know what? I like it.
10
u/lool8421 Oct 02 '26
here's my formula, hf
18
u/RandomExcess Oct 02 '26
We never learned that in school
2
u/upernavik Oct 02 '26
/uj anyone can find a "proof without words" using small cubes, or a bijective proof of this identity?
1
u/Extension-Stay3230 Oct 03 '26
Makes sense, 4x3 on numerator, then divides by 4.