| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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 Complexpublic long longValue()
longValue in class Complexpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 Complexpublic Numeric mul(java.lang.Object y)
mul in class RealNumpublic Numeric mulReversed(Numeric x)
mulReversed in class Complexpublic static final DFloNum one()
public Numeric div(java.lang.Object y)
div in class RealNumpublic Numeric divReversed(Numeric x)
divReversed in class Complexpublic Numeric power(IntNum y)
Numeric
power in class Numericpublic boolean isNegative()
isNegative in class RealNumpublic Numeric neg()
neg in class Complexpublic 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)
Numericcompare in class Complexpublic int compareReversed(Numeric x)
compareReversed in class Quantitypublic boolean isExact()
isExact in class Complexpublic boolean isZero()
isZero in class RealNumpublic static RatNum toExact(double value)
public java.lang.String toString()
toString in class Numericpublic 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.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||