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
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
Check out http://en.wikipedia.org/wiki/Simpson%27s_rule on Wikipedia.
Will A
Take a look at http://jscience.org/
renick
Related Q & A:
- How To Solve Informatics Olympiad?Best solution by sirupsen.com
- How To Solve Problems Creatively?Best solution by Quora
- how to solve functional equation?Best solution by Mathematics
- How to solve such an optimization problem efficiently??Best solution by Theoretical Computer Science
- How to solve an integral by parts?Best solution by math.hmc.edu
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.