Represents a function computing \((af(x) + b)^p\) for a user-defined function \(f(x)\) and power \(p\). More...
Public Member Functions | |
| PowerMathFunction (MathFunction func, double power) | |
| Constructs a new power function for function func and power 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. | |
| MathFunction | getFunction () |
| Returns the function \(f(x)\). | |
| double | getA () |
| Returns the value of \(a\). | |
| double | getB () |
| Returns the value of \(b\). | |
| double | getPower () |
| Returns the power \(p\). | |
| double | derivative (double x) |
| Computes (or estimates) the first derivative of the function at point x. | |
| double | evaluate (double x) |
| Returns the value of the function evaluated at \(x\). | |
Represents a function computing \((af(x) + b)^p\) for a user-defined function \(f(x)\) and power \(p\).
Definition at line 33 of file PowerMathFunction.java.
| umontreal.ssj.functions.PowerMathFunction.PowerMathFunction | ( | MathFunction | func, |
| double | power ) |
Constructs a new power function for function func and power power.
The values of the constants are \(a=1\) and \(b=0\).
| func | the function \(f(x)\). |
| power | the power \(p\). |
Definition at line 47 of file PowerMathFunction.java.
| umontreal.ssj.functions.PowerMathFunction.PowerMathFunction | ( | MathFunction | func, |
| double | a, | ||
| double | b, | ||
| double | power ) |
Constructs a new power function for function func, power power, and constants a and b.
| func | the function \(f(x)\). |
| power | the power \(p\). |
| a | the multiplicative constant. |
| b | the additive constant. |
Definition at line 60 of file PowerMathFunction.java.
| double umontreal.ssj.functions.PowerMathFunction.derivative | ( | double | x | ) |
Computes (or estimates) the first derivative of the function at point x.
| x | the point to evaluate the derivative to. |
Implements umontreal.ssj.functions.MathFunctionWithFirstDerivative.
Definition at line 105 of file PowerMathFunction.java.
| double umontreal.ssj.functions.PowerMathFunction.evaluate | ( | double | x | ) |
Returns the value of the function evaluated at \(x\).
| x | value at which the function is evaluated |
Implements umontreal.ssj.functions.MathFunction.
Definition at line 110 of file PowerMathFunction.java.
| double umontreal.ssj.functions.PowerMathFunction.getA | ( | ) |
Returns the value of \(a\).
Definition at line 83 of file PowerMathFunction.java.
| double umontreal.ssj.functions.PowerMathFunction.getB | ( | ) |
Returns the value of \(b\).
Definition at line 92 of file PowerMathFunction.java.
| MathFunction umontreal.ssj.functions.PowerMathFunction.getFunction | ( | ) |
Returns the function \(f(x)\).
Definition at line 74 of file PowerMathFunction.java.
| double umontreal.ssj.functions.PowerMathFunction.getPower | ( | ) |