Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solve an Integral in Java [closed]

Tags:

java

math

I need to develop a program in Java to solve some integrals. Integrals like this:

alt text

I've looked for some functions to do this, in java.Math but I didn't find anything.

Has anyone an idea to get a solution for this? (Maybe some extra libraries or something like that).

like image 860
dafero Avatar asked Aug 01 '10 11:08

dafero


People also ask

Can you pull Constant out of Integral?

One useful property of indefinite integrals is the constant multiple rule. This rule means that you can pull constants out of the integral, which can simplify the problem. For example, the integral of 2x + 4 is the same as the 2 multiplied by the integral of x + 2.

Can integral cancel each other?

This says that the derivative of the integral (function) gives the integrand; i.e. differentiation and integration are inverse operations, they cancel each other out.


1 Answers

The Wikipedia article on Numerical Integration has a section on methods for one-dimensional integrals.

You should have no problem implementing the "trapezoidal" or "rectangle" rule.

like image 85
adamse Avatar answered Oct 02 '22 18:10

adamse