Class Pow

  • All Implemented Interfaces:
    Term

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

      • base

        protected final Term base
      • exponent

        protected final Term exponent
    • Constructor Detail

      • Pow

        public Pow​(Term base,
                   Term exponent)
        Constructs a Pow term.
        Parameters:
        base - the base
        exponent - the exponent
    • Method Detail

      • 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