How to solve an indefinite integral in java?

How to solve an Integral in Java?

  • 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) Thanks a lot!!

  • Answer:

    Check this out: http://en.wikipedia.org/wiki/Numerical_integration#Methods_for_one-dimensional_integrals You should have no problem implementing the "trapezoidal" or "rectangle" rule.

dafero at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

The http://commons.apache.org/math/ library contains, in the http://commons.apache.org/math/userguide/analysis.html section, four different numerical integrators: Romberg's method Simpson's method trapezoid method Legendre-Gauss method

Greg Hewgill

Will A

Take a look at http://jscience.org/

renick

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.