Interface PsyMultiplicative<T extends PsyMultiplicative<T>>

Type Parameters:
T - a type of the second operand at binary operation.
All Superinterfaces:
PsyObject
All Known Subinterfaces:
PsyArithmetic<T>, PsyIntegral, PsyNumeric, PsyRational, PsyRealNumeric
All Known Implementing Classes:
PsyBigFraction, PsyBigInteger, PsyComplex, PsyFraction, PsyInteger, PsyReal

@Type("multiplicative") public interface PsyMultiplicative<T extends PsyMultiplicative<T>> extends PsyObject
The representation of multiplicative, a type of object that is an operand of multiplicative operation. This interface declares methods for multiplication, division.
  • Field Details

  • Method Details

    • psyReciprocal

      T psyReciprocal() throws PsyUndefinedResultException
      Returns the multiplicative inverse of this object.
      Returns:
      the multiplicative inverse of this object
      Throws:
      PsyUndefinedResultException - if this object is zero.
    • psyMul

      T psyMul(T oMultiplicative)
      Returns a result of arithmetic multiplication of this number by given object.
      Parameters:
      oMultiplicative - a given number.
      Returns:
      a result of arithmetic multiplication of this number by given object
    • psyDiv

      T psyDiv(T oMultiplicative) throws PsyUndefinedResultException
      Returns a result of arithmetic division of this object by given object.
      Parameters:
      oMultiplicative - a given object.
      Returns:
      a result of arithmetic division of this object by given object
      Throws:
      PsyUndefinedResultException - when the result of division is not defined.