Class Div

java.lang.Object
org.opt4j.operator.algebra.Div
All Implemented Interfaces:
Term

public class Div extends Object implements Term
The Div divides two terms.
  • Field Details

    • a

      protected final Term a
    • b

      protected final Term b
  • Constructor Details

    • Div

      public Div(Term a, Term b)
      Constructs a Div term.
      Parameters:
      a - the dividend
      b - the divisor
  • Method Details

    • calculate

      public double calculate(double... values)
      Description copied from interface: Term
      Calculates the result of this Term.
      Specified by:
      calculate in interface Term
      Parameters:
      values - the values
      Returns:
      the result