25package umontreal.ssj.functions;
47 throw new NullPointerException();
71 return func.evaluate(x) - delta;
Provides utility methods for computing derivatives and integrals of functions.
static double derivative(MathFunction func, double x)
Returns the first derivative of the function func evaluated at x.
static double integral(MathFunction func, double a, double b)
Returns the integral of the function func over .
double evaluate(double x)
Returns the value of the function evaluated at .
double derivative(double x)
Computes (or estimates) the first derivative of the function at point x.
double integral(double a, double b)
Computes (or estimates) the integral of the function over the interval .
MathFunction getFunction()
Returns the function .
double getDelta()
Returns the shift = delta.
double derivative(double x, int n)
Computes (or estimates) the th derivative of the function at point x.
ShiftedMathFunction(MathFunction func, double delta)
Constructs a new function shifting the function func by a shift delta.
Represents a mathematical function whose th derivative can be computed using derivative(double,...
Represents a mathematical function whose derivative can be computed using derivative(double).
Represents a mathematical function whose integral can be computed by the integral(double,...
This interface should be implemented by classes which represent univariate mathematical functions.