Interface MathMode

All Known Implementing Classes:
GaloisFieldMathMode, RealMathMode

public interface MathMode
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    add(int c1, int c2)
    Add c1 with c2.
    int
    div(int c1, int c2)
    Divides c1 by c2 (without remainder).
    int
    mul(int c1, int c2)
    Multiplys c1 ith c2.
    int
    sub(int c1, int c2)
    Subtract c2 from c1.
    get the identitfication representation.
  • Method Details

    • mul

      int mul(int c1, int c2)

      Multiplys c1 ith c2.

      Parameters:
      c1 - the first operand
      c2 - the second operand
      Returns:
      the result of the multiplication
    • div

      int div(int c1, int c2)

      Divides c1 by c2 (without remainder).

      Parameters:
      c1 - the dividend
      c2 - the divisor
      Returns:
      the result of the division
    • add

      int add(int c1, int c2)

      Add c1 with c2.

      Parameters:
      c1 - the first operand
      c2 - the second operand
      Returns:
      the result of the addition
    • sub

      int sub(int c1, int c2)

      Subtract c2 from c1.

      Parameters:
      c1 - the base value
      c2 - the the value to subtract from the base value
      Returns:
      the result of the subtraction
    • toString

      String toString()

      get the identitfication representation.

      Overrides:
      toString in class Object
      Returns:
      th identification string