Package com.graphbuilder.math.func
Class PiFunction
java.lang.Object
com.graphbuilder.math.func.PiFunction
- All Implemented Interfaces:
Function
The constant Pi.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true only for 0 parameters, false otherwise.doubleof(double[] d, int numParam) Returns the constant Pi regardless of the input.toString()
-
Constructor Details
-
PiFunction
public PiFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns the constant Pi regardless of the input. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true only for 0 parameters, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-