#(Simple coding question) Are integrals essentially like for loops in programming languages?

1 messages · Page 1 of 1 (latest)

sudden sapphire
#

Title says it all.

remote thistle
#

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

pseudo abyss
#

I would say summations are more like for loops

#

Integrals are just the limit for summations

opaque saffron
#

If we're being accurate tho, a for loop cannot in general give you the real value of an integral, only approximate it.

nocturne patrol
sudden sapphire
#

cuz like for (int i = bottom of integral; i < top of integral; i++)

#

idk much calculus anyway

fleet garden
#

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.

remote thistle
#

Yea but it's a programmer they're not using any of that