I need to develop a program in Java to solve some integrals. Integrals like this:
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).
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With