Yea, I seem to need templates and classes to do functional programming in C++. First, get an understanding of those. Then, we'll talk.
The other thing is it's really difficult for the computer to figure out what a limit should be, I'd guess, and since the derivative (I highly suggest you try this first, it's a bit easier to compute) and the integral rely on the limit, it's not an easy task to tell a computer how to do calculus.
Yea, I seem to need templates and classes to do functional programming in C++. First, get an understanding of those. Then, we'll talk.
This doesn't require functional programming. Like, at all. Also, functional programming is just a different paradigm, it doesn't add or remove from the things you can do (it just makes you go at problems somewhat differently).
The other thing is it's really difficult for the computer to figure out what a limit should be, I'd guess, and since the derivative (I highly suggest you try this first, it's a bit easier to compute) and the integral rely on the limit, it's not an easy task to tell a computer how to do calculus.
If the function is integrable, you can just approximate the value of it's integral over an interval, which is quite apparently what the OP's going for.
True, it doesn't require functional programming. It does require functional programming, though, to do this without having to rewrite the code for each function ... right?
Effectively higher-order functions that can take functions as arguments and/or return functions, right? I'm primarily a mathematician, I'm quite used to it if I got the definition right.
Ohhh ... the OP is asking for the integral with bounds, not the antiderivative. :')
Nope, not everything that uses higher order functions is automatically functional. You can use higher order functions and still program more imperative than assembly.