|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.jscience.mathematics.algebraic.numbers.ComparableNumber<Double>
org.jscience.mathematics.algebraic.numbers.Double
public final class Double
The Double class encapsulates double numbers.
DoubleField,
Serialized Form| Field Summary | |
|---|---|
static double |
MAX_VALUE
DOCUMENT ME! |
static double |
MIN_VALUE
DOCUMENT ME! |
static double |
NaN
DOCUMENT ME! |
static double |
NEGATIVE_INFINITY
DOCUMENT ME! |
static Double |
ONE
DOCUMENT ME! |
static double |
POSITIVE_INFINITY
DOCUMENT ME! |
static java.lang.Class |
TYPE
DOCUMENT ME! |
static Double |
ZERO
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Double(double num)
Constructs a double number. |
|
Double(Double num)
Constructs a double number. |
|
Double(float num)
Constructs a double number. |
|
Double(Float num)
Constructs a double number. |
|
Double(int num)
Constructs a double number. |
|
Double(Integer num)
Constructs a double number. |
|
Double(long num)
Constructs a double number. |
|
Double(Long num)
Constructs a double number. |
|
Double(Rational num)
Constructs a double number. |
|
Double(java.lang.String s)
Constructs the double number represented by a string. |
|
| Method Summary | |
|---|---|
Double |
abs()
Returns the abs of this number. |
static Double |
acos(Double x)
Returns the arc cosine of a number. |
static Double |
acosh(Double x)
Returns the arc hyperbolic cosine of a number. |
AbelianGroup.Member |
add(AbelianGroup.Member n)
Returns the addition of this number and another. |
Double |
add(Double n)
Returns the addition of this double number and another. |
static Double |
asin(Double x)
Returns the arc sine of a number. |
static Double |
asinh(Double x)
Returns the arc hyperbolic sine of a number. |
static Double |
atan(Double x)
Returns the arc tangent of a number. |
static Double |
atanh(Double x)
Returns the arc hyperbolic tangent of a number. |
java.lang.Object |
clone()
DOCUMENT ME! |
int |
compareTo(ComparableNumber obj)
Compares two comparable numbers. |
int |
compareTo(Double obj)
Compares two double numbers. |
static Double |
cos(Double x)
Returns the trigonometric cosine of an angle. |
static Double |
cosh(Double x)
Returns the hyperbolic cosine of a number. |
Double |
divide(Double n)
Returns the division of this double number and another. |
Field.Member |
divide(Field.Member n)
Returns the division of this number and another. |
double |
doubleValue()
DOCUMENT ME! |
boolean |
equals(java.lang.Object obj)
Compares two double numbers for equality. |
static Double |
exp(Double x)
Returns the exponential number e(2.718...) raised to the power of a number. |
float |
floatValue()
DOCUMENT ME! |
Double |
getDistance(ComparableNumber n)
DOCUMENT ME! |
Double |
getEpsilon()
‚±‚Ì•¡‘f? |
Double |
getNaN()
DOCUMENT ME! |
Double |
getNegativeInfinity()
DOCUMENT ME! |
Double |
getPositiveInfinity()
DOCUMENT ME! |
int |
hashCode()
Returns a hash code for this Double object. |
int |
intValue()
DOCUMENT ME! |
Field.Member |
inverse()
Returns the inverse of this number. |
boolean |
isInfinite()
Returns true if this number is infinite. |
boolean |
isNaN()
Returns true if this number is NaN. |
boolean |
isNegativeInfinity()
DOCUMENT ME! |
boolean |
isPositiveInfinity()
DOCUMENT ME! |
static Double |
log(Double x)
Returns the natural logarithm (base e) of a number. |
long |
longValue()
DOCUMENT ME! |
Double |
max(Double val)
Returns the max of this number and another, according to compareTo rules. |
Double |
min(Double val)
Returns the min of this number and another, according to compareTo rules. |
Double |
multiply(Double n)
Returns the multiplication of this double number and another. |
Ring.Member |
multiply(Ring.Member n)
Returns the multiplication of this number and another. |
AbelianGroup.Member |
negate()
Returns the negative of this number. |
int |
signum()
Returns the sign of this number. |
static Double |
sin(Double x)
Returns the trigonometric sine of an angle. |
static Double |
sinh(Double x)
Returns the hyperbolic sine of a number. |
AbelianGroup.Member |
subtract(AbelianGroup.Member n)
Returns the subtraction of this number and another. |
Double |
subtract(Double n)
Returns the subtraction of this double number and another. |
static Double |
tan(Double x)
Returns the trigonometric tangent of an angle. |
static Double |
tanh(Double x)
Returns the hyperbolic tangent of a number. |
java.lang.String |
toString()
Returns a string representing the value of this double number. |
double |
value()
Returns the double value. |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Double ZERO
public static final Double ONE
public static final double MAX_VALUE
public static final double MIN_VALUE
public static final double NaN
public static final double NEGATIVE_INFINITY
public static final double POSITIVE_INFINITY
public static final java.lang.Class TYPE
| Constructor Detail |
|---|
public Double(double num)
public Double(float num)
public Double(long num)
public Double(int num)
public Double(Double num)
public Double(Float num)
public Double(Rational num)
public Double(Long num)
public Double(Integer num)
public Double(java.lang.String s)
throws java.lang.NumberFormatException
s - a string representing a double number.
java.lang.NumberFormatException - if the string does not contain a parsable number.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - a double number.
public int compareTo(ComparableNumber obj)
throws java.lang.IllegalArgumentException
obj - a number.
this<obj, zero if
this==obj, and a positive value if
this>obj.
java.lang.IllegalArgumentException - DOCUMENT ME!public int compareTo(Double obj)
compareTo in interface java.lang.Comparable<Double>obj - a double number.
this<obj, zero if
this==obj, and a positive value if
this>obj.public java.lang.String toString()
toString in class java.lang.Objectpublic double value()
public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic Double abs()
public int signum()
public Double min(Double val)
min in class ComparableNumber<Double>val - DOCUMENT ME!
public Double max(Double val)
max in class ComparableNumber<Double>val - DOCUMENT ME!
public boolean isNaN()
isNaN in class ComparableNumber<Double>public boolean isInfinite()
isInfinite in class ComparableNumber<Double>public boolean isNegativeInfinity()
isNegativeInfinity in class ComparableNumber<Double>public boolean isPositiveInfinity()
isPositiveInfinity in class ComparableNumber<Double>public Double getNaN()
getNaN in class ComparableNumber<Double>public Double getNegativeInfinity()
getNegativeInfinity in class ComparableNumber<Double>public Double getPositiveInfinity()
getPositiveInfinity in class ComparableNumber<Double>public int hashCode()
hashCode in class java.lang.Objectpublic Double getDistance(ComparableNumber n)
getDistance in class ComparableNumber<Double>n - DOCUMENT ME!
public AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic Field.Member inverse()
inverse in interface Field.Memberpublic AbelianGroup.Member add(AbelianGroup.Member n)
add in interface AbelianGroup.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Double add(Double n)
n - DOCUMENT ME!
public AbelianGroup.Member subtract(AbelianGroup.Member n)
subtract in interface AbelianGroup.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Double subtract(Double n)
n - DOCUMENT ME!
public Ring.Member multiply(Ring.Member n)
multiply in interface Ring.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Double multiply(Double n)
n - DOCUMENT ME!
public Field.Member divide(Field.Member n)
divide in interface Field.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Double divide(Double n)
n - DOCUMENT ME!
public static Double exp(Double x)
x - DOCUMENT ME!
public static Double log(Double x)
x - DOCUMENT ME!
public static Double sin(Double x)
x - an angle that is measured in radians
public static Double cos(Double x)
x - an angle that is measured in radians
public static Double tan(Double x)
x - an angle that is measured in radians
public static Double sinh(Double x)
x - DOCUMENT ME!
public static Double cosh(Double x)
x - DOCUMENT ME!
public static Double tanh(Double x)
x - DOCUMENT ME!
public static Double asin(Double x)
x - DOCUMENT ME!
public static Double acos(Double x)
x - DOCUMENT ME!
public static Double atan(Double x)
x - DOCUMENT ME!
public static Double asinh(Double x)
x - DOCUMENT ME!
public static Double acosh(Double x)
x - DOCUMENT ME!
public static Double atanh(Double x)
x - DOCUMENT ME!
public final Double getEpsilon()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||