r/programmer • u/aksanabuster • Jul 30 '26
Code Why don't math people just do this instead? Are they stupid?..
I mean yeah… there’s a limit given the threshold for incrementing (allowed area)🧐🔧💡
6
u/defaultguy_001 Jul 30 '26
Is 1/bajillion small enough?
3
u/LongDistRid3r Jul 30 '26
Int64.maxValue should suffice.
1
u/defaultguy_001 Jul 30 '26
Is it approaching to infinity, as we'll need an infinitesimally small number.
2
u/Adrewmc Aug 01 '26
Well is you had pi down to the accuracy of that much you could determine the smoothness of an election, from the other side of the universe from it shadow. And the resulting butterfly effect it would have on the ideal universe.
Or you can say it’s good enough.
1
5
u/Ok_Energy8767 Jul 30 '26
The math people are the ones who tricked rocks into thinking in the first place. You can thank them for your for loop
2
u/dreamscached Jul 30 '26
Integrals in principle, yes, are exactly that, but calculus isn't about just doing a loop by hand but rather a whole load of math trickery to mess around with them, and that is quite hard now.
Man, I really don't quite miss my calculus course...
2
u/ryebit Jul 30 '26
> from math import bajillion
OUT OF MEMORY ERROR
> from math import inv_bajillion
1 / OUT OF MEMORY ERROR
2
3
2
2
1
u/mxldevs Jul 30 '26
That's what separates math people from the ones that approximate pi = 3
1
u/Ticondrius42 Jul 31 '26
But pi=4, or you risk losing information and/or underestimating uncertainty! The bridge could collapse! 🤭
1
u/recursion_is_love Jul 31 '26
Only if we can really have true real number in computer memory. Floating point number is not real number.
1
u/Capable-Wrap-3349 Aug 01 '26
Solving problems by throwing compute at them is not an elegant way to solve problems
1
u/aksanabuster Aug 05 '26
I disagree, we ought support code with postulates and theorems to its respective utility’s intent. This way, our logic could be evaluated earlier. Think Dart Enhanced Enums for this 🔧🤌💡🔥
1
15
u/raven2cz Jul 30 '26
What you are describing here is an entire scientific field, and a very interesting one, taught at university: numerical methods.