Class AdaptiveSimpsonIntegrator

java.lang.Object
org.episteme.core.mathematics.analysis.integration.AdaptiveSimpsonIntegrator
All Implemented Interfaces:
Integrator

public class AdaptiveSimpsonIntegrator extends Object implements Integrator
Adaptive Simpson's rule integration.

Uses Simpson's 1/3 rule with adaptive subdivision for accurate results. This is generally more accurate than trapezoidal rule for smooth functions.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • AdaptiveSimpsonIntegrator

      public AdaptiveSimpsonIntegrator()
  • Method Details

    • integrate

      public Real integrate(RealFunction f, Real a, Real b)
      Description copied from interface: Integrator
      Computes the definite integral of a function over [a, b].
      Specified by:
      integrate in interface Integrator
      Parameters:
      f - the function to integrate
      a - the lower bound
      b - the upper bound
      Returns:
      the approximate value of the integral
    • integrate

      public Real integrate(RealFunction f, Real a, Real b, Real tolerance)
      Description copied from interface: Integrator
      Computes the definite integral with specified tolerance.
      Specified by:
      integrate in interface Integrator
      Parameters:
      f - the function to integrate
      a - the lower bound
      b - the upper bound
      tolerance - the desired accuracy
      Returns:
      the approximate value of the integral