| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.NumberField Summary |
Method Summary | |
Numeric |
|
Numeric |
|
int |
|
static int |
|
static int | |
int | |
Numeric |
|
Numeric | |
double |
|
boolean |
|
int |
|
boolean |
|
boolean | |
boolean |
|
long | |
static DFloNum |
|
Numeric |
|
Numeric | |
Numeric |
|
static DFloNum |
|
Numeric | |
void |
|
int |
|
static RatNum |
|
String |
|
String |
|
void |
|
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 DFloNum()
public DFloNum(String s)
throws NumberFormatExceptionpublic DFloNum(double value)
public Numeric addReversed(Numeric x, int k)
Calculate x+k&this.
- Overrides:
- addReversed in interface Complex
public int compare(Object obj)
Return 1 if this>obj; 0 if this==obj; -1 if this
public static int compare(double x,
double y)public static int compare(IntNum x_num, IntNum x_den, double y)
Compare (x_num/x_den) with toExact(y).
public final double doubleValue()
The value of the real component, as a double. This is relative to the unit().dims - i.e. unit()/doubleValue() is factored in.
- Overrides:
- doubleValue in interface Complex
public int hashCode()
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 void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundExceptionpublic int sign()
Return 1 if >0; 0 if ==0; -1 if <0; -2 if NaN.
public void writeExternal(ObjectOutput out)
throws IOException