Interface PsyMultiplicative<T extends PsyMultiplicative>

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

public interface PsyMultiplicative<T extends PsyMultiplicative> extends PsyObject
A 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

    • psyMul

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

      T psyDiv(T oArithmetic) throws PsyUndefinedResultException
      Returns a result of arithmetic division of this object by given object.
      Parameters:
      oArithmetic - a given object.
      Returns:
      a fraction.
      Throws:
      PsyUndefinedResultException