Class Pow

  • All Implemented Interfaces:
    Term

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

      Fields 
      Modifier and Type Field Description
      protected Term base  
      protected Term exponent  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pow​(Term base, Term exponent)
      Constructs a Pow term.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double calculate​(double... values)
      Calculates the result of this Term.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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