This is posted more for discussion than anything else.
Anyone who's taken calculus know's what an integral is. They're the area under a curve governed by a function f(x) from a to b. What I'm wondering is, how does one program integrals in C/C++? Being that a computer can't antidifferentiate like a human can, how would you tackle the problem?
What I'm thinking right now is it would be easy to simply use a Rhemann sum, and apply Simpson's rule.... But then we run into the issue of approximations...
Any thoughts people?