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
| 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 java.lang.Number |
byteValue,
shortValue |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
makeMethod
public static Method makeMethod
DFloNum
public DFloNum(double value)
DFloNum
public DFloNum(java.lang.String s)
throws java.lang.NumberFormatException
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