Uses of Class
gnu.math.RatNum

Packages that use RatNum
gnu.kawa.functions   
gnu.kawa.lispexpr   
gnu.kawa.xml   
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.lispexpr
 

Methods in gnu.kawa.lispexpr that return RatNum
static RatNum LangObjType.coerceRatNum(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.asRatNumOrNull(java.lang.Object value)
           
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)
           
 RatNum RatNum.rneg()
           
static RatNum RatNum.times(RatNum x, RatNum y)
           
 RatNum RatNum.toExact()
           
 RatNum RealNum.toExact()
          Convert to an exact number.
static RatNum DFloNum.toExact(double value)
          Converts to the closest exact rational value.
static RatNum RatNum.valueOf(java.math.BigDecimal 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)
           
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.