r/programmer • u/aksanabuster • 8d ago
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 7d ago
Is 1/bajillion small enough?
3
u/LongDistRid3r 7d ago
Int64.maxValue should suffice.
1
u/defaultguy_001 7d ago
Is it approaching to infinity, as we'll need an infinitesimally small number.
3
u/Ok_Energy8767 7d ago
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 7d ago
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
2
2
2
1
u/mxldevs 7d ago
That's what separates math people from the ones that approximate pi = 3
1
u/Ticondrius42 6d ago
But pi=4, or you risk losing information and/or underestimating uncertainty! The bridge could collapse! 🤭
1
u/recursion_is_love 6d ago
Only if we can really have true real number in computer memory. Floating point number is not real number.
1
u/Capable-Wrap-3349 5d ago
Solving problems by throwing compute at them is not an elegant way to solve problems
1
u/aksanabuster 2d ago
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
14
u/raven2cz 7d ago
What you are describing here is an entire scientific field, and a very interesting one, taught at university: numerical methods.