Package com.graphbuilder.math.func
Class LogFunction
java.lang.Object
com.graphbuilder.math.func.LogFunction
- All Implemented Interfaces:
Function
The log function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true only for 1 or 2 parameters, false otherwise.doubleof(double[] d, int numParam) If the number of parameters specified is 1, then the log base 10 is taken of the value at index location 0.toString()
-
Constructor Details
-
LogFunction
public LogFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) If the number of parameters specified is 1, then the log base 10 is taken of the value at index location 0. If the number of parameters specified is 2, then the base value is at index location 1. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true only for 1 or 2 parameters, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-