|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use RatNum | |
---|---|
gnu.kawa.functions | Various core run-time functions and operators. |
gnu.kawa.xml | Classes for using XML within Kawa. |
gnu.math | Supports various numeric types, including complex numbers, efficient bignums, exact rational numbers, units. |
Uses of RatNum in gnu.kawa.functions |
---|
Methods in gnu.kawa.functions that return RatNum | |
---|---|
static RatNum |
Arithmetic.asRatNum(java.lang.Object value)
|
Uses of RatNum in gnu.kawa.xml |
---|
Subclasses of RatNum in gnu.kawa.xml | |
---|---|
class |
XInteger
An integer that is an instance of a more specific integer type. |
Uses of RatNum in gnu.math |
---|
Subclasses of RatNum in gnu.math | |
---|---|
class |
IntFraction
Implementation of exact rational numbers a ratio of two IntNums. |
class |
IntNum
A class for infinite-precision integers. |
Methods in gnu.math that return RatNum | |
---|---|
static RatNum |
RatNum.add(RatNum x,
RatNum y,
int k)
|
static RatNum |
RatNum.divide(RatNum x,
RatNum y)
|
static RatNum |
RatNum.infinity(int sign)
Return exact "rational" infinity. |
static RatNum |
RatNum.make(IntNum num,
IntNum den)
|
static RatNum |
RatNum.neg(RatNum x)
|
static RatNum |
RatNum.times(RatNum x,
RatNum y)
|
RatNum |
RealNum.toExact()
Convert to an exact number. |
RatNum |
RatNum.toExact()
|
static RatNum |
DFloNum.toExact(double value)
Converts to the closest exact rational value. |
Methods in gnu.math with parameters of type RatNum | |
---|---|
static RatNum |
RatNum.add(RatNum x,
RatNum y,
int k)
|
static int |
RatNum.compare(RatNum x,
RatNum y)
|
static RatNum |
RatNum.divide(RatNum x,
RatNum y)
|
static boolean |
RatNum.equals(RatNum x,
RatNum y)
|
void |
FixedRealFormat.format(RatNum number,
boolean negative,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
|
void |
FixedRealFormat.format(RatNum number,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
|
static RatNum |
RatNum.neg(RatNum x)
|
static RatNum |
RatNum.times(RatNum x,
RatNum y)
|
static IntNum |
RealNum.toScaledInt(RatNum r,
int k)
Convert rational to (rounded) integer, after multiplying by 10**k. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |