|
Orbital library | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Rational | |
---|---|
orbital.math | Defines arithmetic objects and provides mathematical algorithms. |
Uses of Rational in orbital.math |
---|
Subinterfaces of Rational in orbital.math | |
---|---|
interface |
Integer
Representation of an integer number k∈Z. |
Methods in orbital.math that return Rational | |
---|---|
Rational |
Rational.add(Rational b)
adds two rationals returning a third as a result |
Rational |
Rational.divide(Rational b)
divides two rationals returning a third as a result |
Rational |
Rational.multiply(Rational b)
multiplies two rationals returning a third as a result |
Rational |
Rational.power(Integer b)
Return ab. |
Rational |
Integer.power(Integer b)
Return ab. |
Rational |
ValueFactory.rational(int p)
|
Rational |
ValueFactory.rational(Integer p)
Returns a new (integer) rational whose value is equal to p/1. |
Rational |
ValueFactory.rational(Integer p,
Integer q)
Returns a new rational whose value is equal to p/q. |
Rational |
ValueFactory.rational(int p,
int q)
|
Rational |
Rational.representative()
Get the "canonical" representative (cancelled out and normalized) of the equivalence class of rationals equal to this. |
Rational |
Rational.subtract(Rational b)
subtracts two rationals returning a third as a result |
Methods in orbital.math with parameters of type Rational | |
---|---|
Rational |
Rational.add(Rational b)
adds two rationals returning a third as a result |
Rational |
Rational.divide(Rational b)
divides two rationals returning a third as a result |
java.lang.String |
ArithmeticFormat.format(Rational obj)
Specialization of format. |
java.lang.StringBuffer |
ArithmeticFormat.format(Rational v,
java.lang.StringBuffer result,
java.text.FieldPosition fieldPosition)
Specialization of format. |
Rational |
Rational.multiply(Rational b)
multiplies two rationals returning a third as a result |
Real |
Rational.power(Rational b)
Return ab. |
Rational |
Rational.subtract(Rational b)
subtracts two rationals returning a third as a result |
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |