Package com.singularsys.jep.functions

# Class Divide

java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.BinaryFunction
com.singularsys.jep.functions.Divide

All Implemented Interfaces:
  `PostfixMathCommandI`, `RealBinaryFunction`, `Serializable`

Direct Known Subclasses:
  `BigDecDiv`

public class Divide extends BinaryFunction implements RealBinaryFunction
Division of two arguments.

Since:
  Jep 4.1 can work with `List<?>`.
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
  `Divide()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Complex`
  `div(Complex c1, Complex c2)`
  `Complex`
  `div(Complex c, Number d)`
  `Complex`
  `div(Number d, Complex c)`
  `Double`
  `div(Number d1, Number d2)`
  `Object`
  `div(Object param1, Object param2)`
  `Vector<Object>`
  `div(List<?> v, Object d)`
  `Object`
  `eval(Object l, Object r)`
  Evaluate the function
  `double`
  `evaluate(double l, double r)`

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

  - ### Divide

    public Divide()

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

  - ### div

    public Object div(Object param1, Object param2) throws EvaluationException
    Throws:
      `EvaluationException`

  - ### div

    public Double div(Number d1, Number d2)

  - ### div

    public Complex div(Complex c1, Complex c2)

  - ### div

    public Complex div(Number d, Complex c)

  - ### div

    public Complex div(Complex c, Number d)

  - ### div

    public Vector<Object> div(List<?> v, Object d) throws EvaluationException
    Throws:
      `EvaluationException`

  - ### evaluate

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