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 Summary
-
Method Details
-
integrate
Computes the definite integral of a function over [a, b].- Parameters:
f- the function to integratea- the lower boundb- the upper bound- Returns:
- the approximate value of the integral
-
integrate
Computes the definite integral with specified tolerance.- Parameters:
f- the function to integratea- the lower boundb- the upper boundtolerance- the desired accuracy- Returns:
- the approximate value of the integral
-