★ wanayoo — archive 1999 http://sourceware.cygnus.com/kawa/api/gnu/math/DFloNum.htmlNouvelle recherche | Portail wanayoo

gnu.math
Class DFloNum

java.lang.Object
  |
  +--java.lang.Number
        |
        +--gnu.math.Numeric
              |
              +--gnu.math.Quantity
                    |
                    +--gnu.math.Complex
                          |
                          +--gnu.math.RealNum
                                |
                                +--gnu.math.DFloNum

public class DFloNum
extends RealNum
implements Compilable

See Also:
Serialized Form

Field Summary
static Method makeMethod
           
 
Fields inherited from class gnu.math.Numeric
CEILING, FLOOR, ROUND, TRUNCATE
 
Constructor Summary
DFloNum(double value)
           
DFloNum(java.lang.String s)
           
 
Method Summary
 Numeric add(java.lang.Object y, int k)
           
 Numeric addReversed(Numeric x, int k)
           
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)
           
 int compareReversed(Numeric x)
           
 Numeric div(java.lang.Object y)
           
 Numeric divReversed(Numeric x)
           
 double doubleValue()
           
 void emit(Literal literal, Compilation comp)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
static void initMakeMethods()
           
 boolean isExact()
           
 boolean isNegative()
           
 boolean isZero()
           
 long longValue()
           
static DFloNum make(double value)
           
 Literal makeLiteral(Compilation comp)
           
 Numeric mul(java.lang.Object y)
           
 Numeric mulReversed(Numeric x)
           
 Numeric neg()
           
 Numeric power(IntNum y)
           
 int sign()
           
static RatNum toExact(double value)
          Converts to the closest exact rational value.
 java.lang.String toString()
           
 java.lang.String toString(int radix)
           
 
Methods inherited from class gnu.math.RealNum
abs, add, angle, div, exp, im, log, max, min, mul, re, rneg, sin, sqrt, toExact, toExactInt, toExactInt, toExactInt, toInt, 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 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
 

Field Detail

makeMethod

public static Method makeMethod
Constructor Detail

DFloNum

public DFloNum(double value)

DFloNum

public DFloNum(java.lang.String s)
        throws java.lang.NumberFormatException
Method Detail

make

public static DFloNum make(double value)

doubleValue

public final double doubleValue()
Overrides:
doubleValue in class Complex

longValue

public long longValue()
Overrides:
longValue in class Complex

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Complex

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

power

public Numeric power(IntNum y)
Overrides:
power in class Numeric

isNegative

public boolean isNegative()
Overrides:
isNegative in class RealNum

neg

public Numeric neg()
Overrides:
neg in class Complex

sign

public int sign()
Overrides:
sign in class RealNum

compare

public static int compare(double x,
                          double y)

compare

public static int compare(IntNum x_num,
                          IntNum x_den,
                          double y)
Compare (x_num/x_den) with toExact(y).

compare

public int compare(java.lang.Object obj)
Overrides:
compare in class Complex

compareReversed

public int compareReversed(Numeric x)
Overrides:
compareReversed in class Quantity

isExact

public boolean isExact()
Overrides:
isExact in class Complex

isZero

public boolean isZero()
Overrides:
isZero in class RealNum

toExact

public static RatNum toExact(double value)
Converts to the closest exact rational value.

toString

public java.lang.String toString()
Overrides:
toString in class Numeric

toString

public java.lang.String toString(int radix)
Overrides:
toString in class Complex

initMakeMethods

public static void initMakeMethods()

makeLiteral

public Literal makeLiteral(Compilation comp)
Specified by:
makeLiteral in interface Compilable

emit

public void emit(Literal literal,
                 Compilation comp)
Specified by:
emit in interface Compilable