Modifier and Type | Method and Description |
---|---|
Rational |
Rational.add(Rational other)
Add two rational numbers
|
Rational |
Rational.divide(Rational other)
Divide this rational number r by another one t
|
Rational |
Rational.invert()
Invert a rational number r
|
Rational |
Rational.multiply(Rational other)
Multiply two rational numbers
|
Rational |
Rational.negate()
Negate a rational number r
|
Rational |
Rational.subtract(Rational other)
Subtract a rational number t from this one r
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.add(Rational other)
Add two rational numbers
|
Rational |
Rational.divide(Rational other)
Divide this rational number r by another one t
|
Rational |
Rational.multiply(Rational other)
Multiply two rational numbers
|
Rational |
Rational.subtract(Rational other)
Subtract a rational number t from this one r
|