Package libai.common.functions
Class Sinc
- java.lang.Object
-
- libai.common.functions.Sinc
-
- All Implemented Interfaces:
java.io.Serializable,Function
public class Sinc extends java.lang.Object implements Function
Function Sinc.Sinc(x) = {1 for x = 0 sin(x)/x for x != 0}. Sinc'(x) = {0 for x = 0 cos(x)/x-sin(x)/x^2 for x != 0}- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Sinc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleeval(double x)Function to evaluate.FunctiongetDerivate()Evaluate the first derivate of this function f'(x)
-
-
-
Method Detail
-
eval
public double eval(double x)
Description copied from interface:FunctionFunction to evaluate.
-
getDerivate
public Function getDerivate()
Description copied from interface:FunctionEvaluate the first derivate of this function f'(x)- Specified by:
getDerivatein interfaceFunction- Returns:
- a new Function object with the derivate function.
-
-