Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Number
public abstract class RatNum
extends RealNum
Field Summary |
Method Summary | |
static RatNum | |
static int | |
abstract IntNum | |
static RatNum | |
boolean |
|
static boolean | |
static RatNum |
|
boolean |
|
boolean |
|
static RatNum | |
abstract IntNum | |
Numeric | |
static RealNum |
|
static RatNum | |
RatNum |
|
IntNum |
|
RealNum |
|
Methods inherited from class gnu.math.RealNum | |
abs , add , add , compareTo , div , divide , exp , im , isNegative , isZero , log , max , min , mul , re , rneg , sign , sin , sqrt , times , toExact , toExactInt , toExactInt , toExactInt , toInt , toInt , toScaledInt , toScaledInt , toScaledInt |
Methods inherited from class gnu.math.Complex | |
abs , add , add , addReversed , angle , compare , compare , div , divReversed , divide , doubleImagValue , doubleRealValue , doubleValue , equals , equals , exp , imMinusOne , imOne , isExact , isZero , log , longValue , make , make , mul , mulReversed , neg , neg , number , polar , polar , power , sqrt , times , toString |
Methods inherited from class gnu.math.Quantity | |
abs , add , add , addReversed , compare , compare , compareReversed , dimensions , div , divReversed , divide , doubleImagValue , doubleValue , im , imValue , make , make , make , mul , mulReversed , neg , number , re , reValue , times , toString , unit |
Methods inherited from class gnu.math.Numeric | |
abs , add , add , addReversed , compare , compareReversed , div , divReversed , div_inv , equals , floatValue , geq , grt , intValue , isExact , isZero , longValue , mul , mulReversed , mul_ident , neg , power , sub , toString , toString |
public static RatNum infinity(int sign)
Return exact "rational" infinity.
- Parameters:
sign
- either 1 or -1 for positive or negative infinity
public Numeric power(IntNum y)
Return this raised to an integer power. Implemented by repeated squaring and multiplication. If y <320, returns div_inv of the result.
public static RealNum rationalize(RealNum x, RealNum y)
Calcaulte the simplest rational between two reals.