Class LogTwoArg
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.BinaryFunction
com.singularsys.jep.misc.functions.LogTwoArg
- All Implemented Interfaces:
PostfixMathCommandI
,RealBinaryFunction
,Serializable
Logarithm function where the base is specified in the second argument.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.functions.BinaryFunction
instanceOf, instanceOf, run
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Constructor Details
-
LogTwoArg
public LogTwoArg(boolean strict) Constructor specifying treatment of negative real values- Parameters:
strict
- if true negative real arguments return NaN, otherwise complex results are returned
-
LogTwoArg
public LogTwoArg()Defaults constructor, negative real arguments result in complex results.
-
-
Method Details
-
eval
- Specified by:
eval
in classBinaryFunction
- Throws:
EvaluationException
-
log
- Throws:
EvaluationException
-
evaluate
public double evaluate(double l, double r) - Specified by:
evaluate
in interfaceRealBinaryFunction
-