Package com.singularsys.jep.misc.functions

# 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`

public class LogTwoArg extends BinaryFunction implements RealBinaryFunction
Logarithm function where the base is specified in the second argument.

See Also:
  - Serialized Form

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.singularsys.jep.functions.BinaryFunction

  `BinaryFunction.BiFunctionWithException<T>`

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `curNumberOfParameters, description, name, NaN, numberOfParameters`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LogTwoArg()`
  Defaults constructor, negative real arguments result in complex results.
  `LogTwoArg(boolean strict)`
  Constructor specifying treatment of negative real values

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `eval(Object l, Object r)`
  Evaluate the function
  `double`
  `evaluate(double l, double r)`
  `Object`
  `log(Object param, Object base)`

  ### Methods inherited from class com.singularsys.jep.functions.BinaryFunction

  `instanceOf, instanceOf, instanceOf, instanceOf, run`

  ### Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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

    public Object eval(Object l, Object r) throws EvaluationException
    Description copied from class: `BinaryFunction`
    Evaluate the function
    Specified by:
      `eval` in class `BinaryFunction`
    Parameters:
      `l` - lhs argument
      `r` - rhs argument
    Returns:
      the results
    Throws:
      `EvaluationException` - if the function cannot be evaluated.

  - ### log

    public Object log(Object param, Object base) throws EvaluationException
    Throws:
      `EvaluationException`

  - ### evaluate

    public double evaluate(double l, double r)
    Specified by:
      `evaluate` in interface `RealBinaryFunction`