Package com.graphbuilder.math.func
Class FactFunction
java.lang.Object
com.graphbuilder.math.func.FactFunction
- All Implemented Interfaces:
Function
The factorial function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true only for 1 parameter, false otherwise.doubleof(double[] d, int numParam) Takes the (int) of the value at index location 0 and computes the factorial of that number.toString()
-
Constructor Details
-
FactFunction
public FactFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Takes the (int) of the value at index location 0 and computes the factorial of that number. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true only for 1 parameter, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-