| 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of RationalNumber in org.znerd.math | 
| Subclasses of RationalNumber in org.znerd.math | |
 class | 
BasicDigitSet
Basic implementation of a DigitSet. | 
 class | 
BasicRationalNumber
Basic implementation of a rational number, i.e.  | 
 class | 
BigIntegerNumber
Basic implementation of an integer number.  | 
 class | 
DigitSet
A set of digits, having a radix and an exponent.  | 
 class | 
IntegerNumber
An immutable integer number.  | 
 class | 
SmallIntegerNumber
Implementation of an IntegerNumber based on a
 int value. | 
| Methods in org.znerd.math that return RationalNumber | |
 RationalNumber | 
RationalNumber.add(RationalNumber n)
Computes this+n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.subtract(RationalNumber n)
Computes this-n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.multiply(RationalNumber n)
Computes this*n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.divide(RationalNumber n)
Computes this/n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.pow(IntegerNumber n)
Computes this**n, where n is an integer number.  | 
 RationalNumber | 
IntegerNumber.add(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.subtract(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.multiply(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.divide(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.pow(IntegerNumber n)
 | 
static RationalNumber | 
NumberCentral.createFraction(int numerator,
               int denominator)
Returns a fraction with the given numerator and denominator, both being an int. | 
static RationalNumber | 
NumberCentral.createFraction(IntegerNumber numerator,
               IntegerNumber denominator)
Returns a fraction with the given numerator and denominator.  | 
static RationalNumber | 
NumberCentral.valueOf(double n)
Converts a double to a RationalNumber. | 
static RationalNumber | 
NumberCentral.valueOf(float n)
Converts a float to a RationalNumber. | 
static RationalNumber | 
NumberCentral.valueOf(BigDecimal n)
Converts a BigDecimal to a RationalNumber. | 
| Methods in org.znerd.math with parameters of type RationalNumber | |
protected  int | 
RationalNumber.compareTo(RationalNumber n)
Compares this number with the specified rational number.  | 
protected  int | 
RationalNumber.compareToImpl(RationalNumber n)
 | 
 RationalNumber | 
RationalNumber.add(RationalNumber n)
Computes this+n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.subtract(RationalNumber n)
Computes this-n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.multiply(RationalNumber n)
Computes this*n, where n is a rational number.  | 
 RationalNumber | 
RationalNumber.divide(RationalNumber n)
Computes this/n, where n is a rational number.  | 
protected  int | 
IntegerNumber.compareToImpl(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.add(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.subtract(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.multiply(RationalNumber n)
 | 
 RationalNumber | 
IntegerNumber.divide(RationalNumber n)
 | 
  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||