Class Pow

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

public class Pow extends Object implements Term
The Pow performs an exponentiation of two Terms.
  • Field Details

    • base

      protected final Term base
    • exponent

      protected final Term exponent
  • Constructor Details

    • Pow

      public Pow(Term base, Term exponent)
      Constructs a Pow term.
      Parameters:
      base - the base
      exponent - the exponent
  • 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