Class Log

All Implemented Interfaces:
Expression

public class Log extends BinaryFunction
This class represents the arithmetic binary operation "log(x, base)".
  • Constructor Details

  • Method Details

    • op

      public Real op(Real base, Real n)
      Description copied from class: BinaryFunction
      Abstract method representing the actual function result of two reals
      Specified by:
      op in class BinaryFunction
      Parameters:
      base - first Real of the binary operation
      n - second Real of the binary operation
      Returns:
      result of the function on two Reals
    • op

      public Complex op(Complex base, Complex n)
      Description copied from class: BinaryFunction
      Abstract method representing the actual function result of two complexes
      Specified by:
      op in class BinaryFunction
      Parameters:
      base - first Complex of the binary operation
      n - second Complex of the binary operation
      Returns:
      result of the function on two Complexes
    • op

      public Real op(IntegerAtom base, IntegerAtom n)
      Description copied from class: BinaryFunction
      Abstract method representing the actual function result of two integers
      Specified by:
      op in class BinaryFunction
      Parameters:
      base - first Integer of the binary operation
      n - second Integer of the binary operation
      Returns:
      result of the function on two IntegerAtoms
    • op

      public Real op(Rationnal base, Rationnal n)
      Description copied from class: BinaryFunction
      Abstract method representing the actual function result of two Rationnals
      Specified by:
      op in class BinaryFunction
      Parameters:
      base - first Rationnal of the binary operation
      n - second Rationnal of the binary operation
      Returns:
      result of the function on two Rationnals