Package org.hipparchus.analysis.function
Class Power
java.lang.Object
org.hipparchus.analysis.function.Power
- All Implemented Interfaces:
UnivariateDifferentiableFunction,UnivariateFunction
Power function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublevalue(double x) Compute the value of the function.<T extends Derivative<T>>
Tvalue(T t) Compute the value for the function.
-
Constructor Details
-
Power
public Power(double p) Simple constructor.- Parameters:
p- Power.
-
-
Method Details
-
value
public double value(double x) Compute the value of the function.- Specified by:
valuein interfaceUnivariateFunction- Parameters:
x- Point at which the function value should be computed.- Returns:
- the value of the function.
-
value
Compute the value for the function.- Specified by:
valuein interfaceUnivariateDifferentiableFunction- Type Parameters:
T- the type of the field elements- Parameters:
t- the point for which the function value should be computed- Returns:
- the value
-