package umontreal.iro.lecuyer.functions;
/**
* Represents a mathematical function whose
* integral can be computed by the
* {@link #integral(double, double) integral} method.
*
*/
public interface MathFunctionWithIntegral extends MathFunction {
/**
* Computes (or estimates) the integral of the
* function over the interval [a, b].
*
* @param a the starting point of the interval.
*
* @param b the ending point of the interval.
*
* @return the value of the integral.
*/
public double integral (double a, double b);
}
Ads help maintain this website.