Package | Description |
---|---|
org.rvpf.base.value |
Point value classes.
|
org.rvpf.processor.engine.rpn.operation |
RPN operations.
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.abs()
Returns the absolute value of this number.
|
Rational |
Rational.add(long integer)
Adds an integer.
|
Rational |
Rational.add(Rational other)
Adds an other rational.
|
Rational |
Rational.divide(long integer)
Divides by an integer.
|
Rational |
Rational.divide(Rational other)
Divides by an other rational.
|
Rational |
Rational.multiply(long integer)
Multiplies by an integer.
|
Rational |
Rational.multiply(Rational other)
Multiplies by an other rational.
|
Rational |
Rational.negate()
Negates this number.
|
Rational |
Rational.reciprocal()
Returns the reciprocal value of this number.
|
Rational |
Rational.subtract(long integer)
Subtracts an integer.
|
Rational |
Rational.subtract(Rational other)
Subtracts an other rational.
|
static Rational |
Rational.valueOf(long numerator,
long denominator)
Returns a rational number having the values specified.
|
static Rational |
Rational.valueOf(String string)
Returns a rational number from the value of a string.
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.add(Rational other)
Adds an other rational.
|
int |
Rational.compareTo(Rational other) |
Rational |
Rational.divide(Rational other)
Divides by an other rational.
|
Rational |
Rational.multiply(Rational other)
Multiplies by an other rational.
|
Rational |
Rational.subtract(Rational other)
Subtracts an other rational.
|
static BigRational |
BigRational.valueOf(Rational rational)
Returns a big rational number from the value of a rational number.
|
Modifier and Type | Method and Description |
---|---|
static Rational |
RationalOperations.popRationalValue(Stack stack)
Pops the rational at the top of the stack.
|
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.