Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Number
gnu.math.Numeric
gnu.math.Quantity
gnu.math.Complex
gnu.math.RealNum
gnu.math.RatNum
gnu.math.IntFraction
Field Summary |
Constructor Summary | |
|
Method Summary | |
Numeric |
|
Numeric |
|
int |
|
int | |
IntNum | |
Numeric |
|
Numeric | |
double | |
boolean | |
long | |
Numeric |
|
Numeric | |
Numeric |
|
static IntFraction |
|
IntNum | |
void |
|
int |
|
String |
|
void |
|
Methods inherited from class gnu.math.RatNum | |
add , compare , denominator , divide , equals , equals , infinity , isExact , isZero , make , numerator , power , rationalize , times , toExact , toExactInt , toInt |
Methods inherited from class gnu.math.RealNum | |
abs , add , add , asBigDecimal , 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 , toStringDecimal , toStringScientific , toStringScientific , toStringScientific , toStringScientific |
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 Numeric addReversed(Numeric x, int k)
Calculate x+k&this.
- Overrides:
- addReversed in interface Complex
public final int compare(Object obj)
Return an integer for which of {# code this} or {#code obj} is larger. Return 1 ifthis>obj
; 0 ifthis==obj
; -1 ifthis
; -2 if this!=obj
otherwise (for example if either is NaN); -3 if not comparable (incompatible types).
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException