r/ProgrammerHumor • • Oct 06 '21

Don't be scared.. Math and Computing are friends..

Post image
65.8k Upvotes

2.4k comments sorted by

View all comments

Show parent comments

2

u/gobblox38 Oct 07 '21

An infinitely small step approaches zero, but never hits zero.

As I've already said, I've taken a class that uses calculus equations to write functional code. Calculators that solve integrals and derivatives do the exact same thing. It's possible to get an approximation that has such a small error that the difference between it and the exact answer is a infinitely small as the step.

1

u/kogasapls Oct 07 '21

An infinitely small step approaches zero, but never hits zero.

It's possible to get an approximation that has such a small error that the difference between it and the exact answer is a infinitely small as the step.

Both of these things are wrong / not even wrong mathematically. The modern formulation of the real numbers & calculus don't include any notion of "infinitely small" numbers. Under certain regularity conditions on the function, you can get arbitrarily good approximations of the integral without any kind of limiting process though.