FractionField class
Methods
-
add(Fraction a, Fraction b)
→ Fraction
-
Computes the addition:
a + b
.
override
-
div(Fraction a, Fraction b)
→ Fraction
-
Computes the division:
a / b
.
override
-
division(Fraction a, Fraction b)
→ Fraction
-
Computes a truncating division:
a ~/ b
.
override
-
gcd(Fraction a, Fraction b)
→ Fraction
-
Computes the greatest common divisor:
gcd(a, b)
.
override
-
inv(Fraction a)
→ Fraction
-
Computes the multiplicative inverse:
1 / a
.
override
-
mod(Fraction a, Fraction b)
→ Fraction
-
Computes the remainder of the Euclidean division
a % b
.
override
-
modInverse(Fraction base, Fraction modulus)
→ Fraction
-
Computes the modular multiplicative inverse of
base
modulo modulus
.
override
-
modPow(Fraction base, Fraction exponent, Fraction modulus)
→ Fraction
-
Computes
base
to the power of exponent
modulo modulus
.
override
-
mul(Fraction a, Fraction b)
→ Fraction
-
Computes the multiplication:
a * b
.
override
-
neg(Fraction a)
→ Fraction
-
Computes the additive inverse:
-a
.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(Fraction base, Fraction exponent)
→ Fraction
-
Computes
base
to the power of exponent
.
override
-
remainder(Fraction a, Fraction b)
→ Fraction
-
Computes the remainder of the truncating division.
override
-
scale(Fraction a, num f)
→ Fraction
-
Computes the multiplicative scaling:
a * f
.
override
-
sub(Fraction a, Fraction b)
→ Fraction
-
Computes the subtraction:
a - b
.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsupportedOperation(String operation)
→ Fraction
-
Thrown when an operation is not supported.
inherited