The Fundamental Theorem of Calculus gives us an exact formula for computing _{}_{a}^{b}f(x) dx, *provided* we can find an antiderivative for f.

This method of evaluating definite integrals is called the **analytic** method. However, there are times when this is difficult or impossible. In these cases, it is usually good enough to find an approximate, or **numerical** solution, and there are some very straighforward ways to do this. [1]

**Here** you can find a processing project that contains "cIntegrate" which calculates numeric value of the integral _{}_{a}^{b}f(x) dx based on "Left Riemann Sums". The **cIntegrate** class has following interface:

- **cIntegrate(float _a, float _b)** - constructor which specifies left (_a) and right (_b) border of the calculated interval.

- **public float solve(intMethodIntegrate methodIntegrateImpl)** - method accepts name of the object from class that contains method to be integrated. This class has to implement interface intMethodIntegratel, which allows to pass the method about to integrate as callback method.

note.: important parameter for Riemann Sums algorithm is number of subintervals the <a,b> interval is divided into. By default constructor sets variable "n = 100;" , however the variable is publicaly accessible.

note1: results of the class were compaired to results from http://www.plu.edu/~heathdj/java/calc2/Riemann.html.

Example:

## Comments

12attempting to find things to improve my web site!I assume its

adequate to use some of your concepts!!

during lunch break. I enjoy the info you provide here and

can't wait to take a look when I get home. I'm amazed at how quick

your blog loaded on my phone .. I'm not even using WIFI, just 3G ..

Anyhow, fantastic site!

Simple but very precise info… Appreciate

your sharing this one. A must read post!

I'm planning to start my own blog soon but I'm a little lost on everything.

Would you recommend starting with a free platform like Wordpress or go for a paid option? There are so

many options out there that I'm totally confused ..

Any ideas? Many thanks!

put up is written by means of him as nobody else know such specific about

my trouble. You are amazing! Thanks!

all is needed to get set up? I'm assuming having

a blog like yours would cost a pretty penny?

I'm not very web savvy so I'm not 100% certain. Any tips or

advice would be greatly appreciated. Cheers

12RSS feed for comments to this post