gnu.math
Class IntFraction
java.lang.Object
|
+--java.lang.Number
|
+--gnu.math.Numeric
|
+--gnu.math.Quantity
|
+--gnu.math.Complex
|
+--gnu.math.RealNum
|
+--gnu.math.RatNum
|
+--gnu.math.IntFraction
- public class IntFraction
- extends RatNum
Implementation of exact rational numbers as fractions of IntNums.
- See Also:
- Serialized Form
| Methods inherited from class gnu.math.RatNum |
add,
compare,
divide,
equals,
equals,
infinity,
isExact,
isZero,
make,
power,
rationalize,
times,
toExact,
toExactInt,
toInt |
| Methods inherited from class gnu.math.RealNum |
abs,
add,
angle,
div,
exp,
im,
log,
max,
min,
mul,
re,
rneg,
sin,
sqrt,
toExactInt,
toExactInt,
toInt |
| Methods inherited from class gnu.math.Complex |
add,
compare,
div,
doubleImagValue,
doubleRealValue,
equals,
imMinusOne,
imOne,
make,
make,
mul,
neg,
number,
polar,
polar,
power |
| Methods inherited from class gnu.math.Quantity |
add,
compare,
dimensions,
div,
imValue,
make,
make,
make,
mul,
reValue,
unit |
| Methods inherited from class java.lang.Number |
byteValue,
shortValue |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
numerator
public final IntNum numerator()
- Overrides:
- numerator in class RatNum
denominator
public final IntNum denominator()
- Overrides:
- denominator in class RatNum
isNegative
public final boolean isNegative()
- Overrides:
- isNegative in class RealNum
sign
public final int sign()
- Overrides:
- sign in class RealNum
compare
public final int compare(java.lang.Object obj)
- Overrides:
- compare in class Complex
compareReversed
public int compareReversed(Numeric x)
- Overrides:
- compareReversed in class Quantity
add
public Numeric add(java.lang.Object y,
int k)
- Overrides:
- add in class RealNum
addReversed
public Numeric addReversed(Numeric x,
int k)
- Overrides:
- addReversed in class Complex
mul
public Numeric mul(java.lang.Object y)
- Overrides:
- mul in class RealNum
mulReversed
public Numeric mulReversed(Numeric x)
- Overrides:
- mulReversed in class Complex
div
public Numeric div(java.lang.Object y)
- Overrides:
- div in class RealNum
divReversed
public Numeric divReversed(Numeric x)
- Overrides:
- divReversed in class Complex
neg
public static IntFraction neg(IntFraction x)
neg
public Numeric neg()
- Overrides:
- neg in class Complex
longValue
public long longValue()
- Overrides:
- longValue in class Complex
doubleValue
public double doubleValue()
- Overrides:
- doubleValue in class Complex
toString
public java.lang.String toString(int radix)
- Overrides:
- toString in class Complex