#(Simple coding question) Are integrals essentially like for loops in programming languages?
1 messages · Page 1 of 1 (latest)
If you think of it as a limit of a Riemann sum that's the best you got
A sum is like a for loop ig seems kinda silly to say that
I would say summations are more like for loops
Integrals are just the limit for summations
Maybe, but only because it's a sum, which doesn't have anything special to do with integrals in particular.
If we're being accurate tho, a for loop cannot in general give you the real value of an integral, only approximate it.
The Riemann sum for a fixed n can be thought of as a for loop, but as integral we denote the limit of n which makes things more difficult
cuz like for (int i = bottom of integral; i < top of integral; i++)
idk much calculus anyway
A for loop in math is not necessarily a summation. For loops in math can be anything that is analogous to sigma notation. You could do it with products (capital pi), unions (big cup), etc.
Yea but it's a programmer they're not using any of that