25package umontreal.ssj.functions;
48 this(func, 1, 0, power);
62 throw new NullPointerException();
111 final double v = func.evaluate(x);
112 return Math.pow(a * v + b, power);
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.
double getPower()
Returns the power .
PowerMathFunction(MathFunction func, double a, double b, double power)
Constructs a new power function for function func, power power, and constants a and b.
double getB()
Returns the value of .
MathFunction getFunction()
Returns the function .
double derivative(double x)
Computes (or estimates) the first derivative of the function at point x.
PowerMathFunction(MathFunction func, double power)
Constructs a new power function for function func and power power.
double getA()
Returns the value of .
double evaluate(double x)
Returns the value of the function evaluated at .
Represents a mathematical function whose derivative can be computed using derivative(double).
This interface should be implemented by classes which represent univariate mathematical functions.