Class Integration

java.lang.Object
org.episteme.core.mathematics.analysis.Integration

public final class Integration extends Object
Provides numerical integration capabilities. * @author Silvere Martin-Michiellot
Since:
1.0
Author:
Gemini AI (Google DeepMind)
  • Method Details

    • setDefaultIntegrator

      public static void setDefaultIntegrator(Integrator integrator)
      Sets the default integrator strategy.
      Parameters:
      integrator - the integrator to use by default
    • getDefaultIntegrator

      public static Integrator getDefaultIntegrator()
      Gets the current default integrator.
      Returns:
      the default integrator
    • integrate

      public static Real integrate(RealFunction f, Real a, Real b)
      Computes the definite integral of a function over the interval [a, b] using the default integrator strategy.
      Parameters:
      f - the function to integrate
      a - the lower bound
      b - the upper bound
      Returns:
      the approximate value of the integral
    • trapezoidal

      public static Real trapezoidal(RealFunction f, Real a, Real b, int n)
      Computes the definite integral using the Trapezoidal rule (simpler, faster, less accurate).
      Parameters:
      f - the function
      a - lower bound
      b - upper bound
      n - number of intervals
      Returns:
      integral value