Package | Description |
---|---|
jhelp.util.math.rational |
Modifier and Type | Field and Description |
---|---|
static Rational |
Rational.INVALID
Invalid rational.
|
static Rational |
Rational.MINUS_ONE
-1 rational
|
static Rational |
Rational.ONE
1 rational
|
static Rational |
Rational.ZERO
0 rational
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.addition(Rational rational)
Add an other rational
|
static Rational |
Rational.addition(Rational rational1,
Rational rational2)
Add 2 rational
|
static Rational |
Rational.createRational(float f)
Create rational from real.
|
static Rational |
Rational.createRational(int integer)
Create rational from integer
|
static Rational |
Rational.createRational(int numerator,
int denominator)
Create a rational
|
Rational |
Rational.divide(Rational rational)
Divide an other rational
|
static Rational |
Rational.divide(Rational rational1,
Rational rational2)
Divide 2 rational
|
Rational |
Rational.inverse()
Inverse the rational
|
static Rational |
Rational.middle(Rational rational1,
Rational rational2)
Compute the rational just in the middle of 2 other rational
|
Rational |
Rational.multiply(Rational rational)
Multiply an other rational
|
static Rational |
Rational.multiply(Rational rational1,
Rational rational2)
Multiply 2 rational
|
Rational |
Rational.opposite()
Rational opposite
|
Rational |
Rational.subtract(Rational rational)
Subtract an other rational
|
static Rational |
Rational.subtract(Rational rational1,
Rational rational2)
Subtract 2 rational
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.addition(Rational rational)
Add an other rational
|
static Rational |
Rational.addition(Rational rational1,
Rational rational2)
Add 2 rational
|
int |
Rational.compareTo(Rational rational)
Compare with an other rational.
|
Rational |
Rational.divide(Rational rational)
Divide an other rational
|
static Rational |
Rational.divide(Rational rational1,
Rational rational2)
Divide 2 rational
|
static Rational |
Rational.middle(Rational rational1,
Rational rational2)
Compute the rational just in the middle of 2 other rational
|
Rational |
Rational.multiply(Rational rational)
Multiply an other rational
|
static Rational |
Rational.multiply(Rational rational1,
Rational rational2)
Multiply 2 rational
|
Rational |
Rational.subtract(Rational rational)
Subtract an other rational
|
static Rational |
Rational.subtract(Rational rational1,
Rational rational2)
Subtract 2 rational
|