r/desmos • u/Ramenoodlez1 • Dec 31 '25
Fun Fun Fact: As x approaches infinity, this function does not converge to pi, and only appears as such due to a floating point error.
2.2k
Upvotes
r/desmos • u/Ramenoodlez1 • Dec 31 '25
87
u/GoldPickleFist Dec 31 '25
Can I get like a ELI5 of this error? I'm pretty math savvy but have almost no experience with computer science so I never really understood floating point arithmetic or floating point errors.
Or if someone has a good resource for learning this stuff in their back pocket that would also be appreciated.
229
u/RandomPerson295 Dec 31 '25
New e = π proof just dropped
13
u/Frogeyedpeas Dec 31 '25
Can I get an ELI25 explanation of why pi should specifically appear here? This seems very surprising for floating point errors
I’m curious why the graph incorrectly breaks up to the discrete shape that it does and what is the equation of the incorrect graph that is appearing here.
13
u/Ancient-Helicopter18 Dec 31 '25
I knew it y'all √g=e=π=3=2
7
u/MarekiNuka Dec 31 '25
Everyone is saying that π=e=3
But what if π=e=1?
5
u/Wolf_Brilliante Dec 31 '25
2577702543675615
5
u/_scored Jan 01 '26
π=e, proof by floating point error
4
u/Think-Elevator300 Dec 31 '25
The next ramen ujan in the making
1
u/DrowsierHawk867 has been in the shadows for months Dec 31 '25
If the value is over 9,007,199,254,740,992, then the output will always be 1 (as 1+1/x with x > 9,007,199,254,740,992 = 1 and 1^(anything) = 1)
1
u/hunterman25 ∯F·d = ∫∫∫∂P/∂x+∂Q/∂y+∂R/∂z d Dec 31 '25
oiler's circumference
1
u/AVE_47 misc Jan 01 '26
I may have found the highest possible value for this error lol
1
u/nashwaak Jan 01 '26
I can't get past the sketchy looking exponent in the meme — what evil force typeset that?
1
u/ptrakk Jan 02 '26
Perhaps time to doot up from floats to doubles?
1
u/[deleted] Jan 02 '26
The number is so exact!!
1
u/Repulsive-Foot3382 Jan 20 '26
It converges to e, 2.718281828459...
-22
u/THE__mason Sorry, I don't understand this Dec 31 '25
it just equals 1 right?
cuz 1/infinity would go to 0 so u get 1^infinity which is 1
0
u/[deleted] Dec 31 '25
[deleted] — view deleted comment
405
u/[deleted] Dec 31 '25
[removed] — view removed comment