Interface MathMode
- All Known Implementing Classes:
GaloisFieldMathMode,RealMathMode
public interface MathMode
-
Method Summary
-
Method Details
-
mul
int mul(int c1, int c2) Multiplys c1 ith c2.
- Parameters:
c1- the first operandc2- 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 dividendc2- the divisor- Returns:
- the result of the division
-
add
int add(int c1, int c2) Add c1 with c2.
- Parameters:
c1- the first operandc2- the second operand- Returns:
- the result of the addition
-
sub
int sub(int c1, int c2) Subtract c2 from c1.
- Parameters:
c1- the base valuec2- the the value to subtract from the base value- Returns:
- the result of the subtraction
-
toString
String toString()get the identitfication representation.
-