|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Complex gnu.math.RealNum gnu.math.DFloNum
public class DFloNum
Field Summary |
---|
Fields inherited from class gnu.math.Numeric |
---|
CEILING, FLOOR, ROUND, TRUNCATE |
Constructor Summary | |
---|---|
DFloNum()
|
|
DFloNum(double value)
|
|
DFloNum(java.lang.String s)
|
Method Summary | |
---|---|
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj. |
Numeric |
addReversed(Numeric x,
int k)
Calculate x+k&this. |
static int |
compare(double x,
double y)
|
static int |
compare(IntNum x_num,
IntNum x_den,
double y)
Compare (x_num/x_den) with toExact(y). |
int |
compare(java.lang.Object obj)
Return 1 if this>obj; 0 if this==obj; -1 if this |
int |
compareReversed(Numeric x)
|
Numeric |
div(java.lang.Object y)
|
Numeric |
divReversed(Numeric x)
|
double |
doubleValue()
The value of the real component, as a double. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
isExact()
|
boolean |
isNegative()
|
boolean |
isZero()
|
long |
longValue()
|
static DFloNum |
make(double value)
|
Numeric |
mul(java.lang.Object y)
|
Numeric |
mulReversed(Numeric x)
|
Numeric |
neg()
|
static DFloNum |
one()
|
Numeric |
power(IntNum y)
Return this raised to an integer power. |
void |
readExternal(java.io.ObjectInput in)
|
int |
sign()
Return 1 if >0; 0 if ==0; -1 if <0; -2 if NaN. |
static RatNum |
toExact(double value)
Converts to the closest exact rational value. |
java.lang.String |
toString()
|
java.lang.String |
toString(int radix)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class gnu.math.RealNum |
---|
abs, add, compareTo, divide, exp, im, log, max, min, re, rneg, sin, sqrt, times, toExact, toExactInt, toExactInt, toExactInt, toInt, toInt, toScaledInt, toScaledInt, toScaledInt |
Methods inherited from class gnu.math.Complex |
---|
add, angle, compare, divide, doubleImagValue, doubleRealValue, equals, imMinusOne, imOne, make, make, neg, number, polar, polar, power, times |
Methods inherited from class gnu.math.Quantity |
---|
add, compare, dimensions, divide, imValue, make, make, make, reValue, times, unit |
Methods inherited from class gnu.math.Numeric |
---|
add, div_inv, floatValue, geq, grt, intValue, mul_ident, sub |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DFloNum()
public DFloNum(double value)
public DFloNum(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatException
Method Detail |
---|
public static DFloNum make(double value)
public final double doubleValue()
Quantity
doubleValue
in class Complex
public long longValue()
longValue
in class Complex
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class Complex
public Numeric add(java.lang.Object y, int k)
Numeric
add
in class RealNum
public Numeric addReversed(Numeric x, int k)
Numeric
addReversed
in class Complex
public Numeric mul(java.lang.Object y)
mul
in class RealNum
public Numeric mulReversed(Numeric x)
mulReversed
in class Complex
public static final DFloNum one()
public Numeric div(java.lang.Object y)
div
in class RealNum
public Numeric divReversed(Numeric x)
divReversed
in class Complex
public Numeric power(IntNum y)
Numeric
power
in class Numeric
public boolean isNegative()
isNegative
in class RealNum
public Numeric neg()
neg
in class Complex
public int sign()
RealNum
sign
in class RealNum
public static int compare(double x, double y)
public static int compare(IntNum x_num, IntNum x_den, double y)
public int compare(java.lang.Object obj)
Numeric
compare
in class Complex
public int compareReversed(Numeric x)
compareReversed
in class Quantity
public boolean isExact()
isExact
in class Complex
public boolean isZero()
isZero
in class RealNum
public static RatNum toExact(double value)
public java.lang.String toString()
toString
in class Numeric
public java.lang.String toString(int radix)
toString
in class Complex
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |