Interface Integrator

All Known Implementing Classes:
AdaptiveSimpsonIntegrator, TrapezoidalIntegrator

public interface Integrator
Interface for numerical integration strategies.

Allows pluggable integration algorithms for computing definite integrals.

Usage Example:

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

    • integrate

      Real integrate(RealFunction f, Real a, Real b)
      Computes the definite integral of a function over [a, b].
      Parameters:
      f - the function to integrate
      a - the lower bound
      b - the upper bound
      Returns:
      the approximate value of the integral
    • integrate

      Real integrate(RealFunction f, Real a, Real b, Real tolerance)
      Computes the definite integral with specified tolerance.
      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