|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.numbers.Number<Float64>
org.jscience.mathematics.numbers.Float64
public final class Float64
This class represents a 64 bits floating point number.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Field Summary | |
|---|---|
static Float64 |
ONE
The 64 bits floating point representing one. |
protected static XMLFormat<Float64> |
XML
Holds the default XML representation for 64 bits floating point numbers. |
static Float64 |
ZERO
The 64 bits floating point representing zero. |
| Method Summary | |
|---|---|
Float64 |
abs()
Returns the absolute value of this number. |
int |
compareTo(Float64 that)
Compares this number with the specified number for order. |
Float64 |
divide(double value)
Returns this number divided by the specified value. |
Float64 |
divide(Float64 that)
Returns this number divided by the one specified. |
double |
doubleValue()
Returns the value of this number as a double. |
boolean |
equal(double value)
Indicates if this number is equal to the specified value. |
boolean |
equals(java.lang.Object that)
Compares this number against the specified object. |
Float64 |
exp()
Returns the exponential number e raised to the power of this number. |
int |
hashCode()
Returns the hash code for this number. |
Float64 |
inverse()
Returns the reciprocal of this number. |
boolean |
isGreaterThan(double value)
Indicates if this number is ordered after the specified value. |
boolean |
isInfinite()
Indicates if this number is infinite. |
boolean |
isLargerThan(double value)
Compares the absolute value of this number with the specified value. |
boolean |
isLargerThan(Float64 that)
Compares the absolute value of this number with that number. |
boolean |
isLessThan(double value)
Indicates if this number is ordered before the specified value. |
boolean |
isNaN()
Indicates if this number is not a number. |
Float64 |
log()
Returns the natural logarithm (base e) of this number. |
long |
longValue()
Returns the value of this number as a long. |
Float64 |
minus(double value)
Returns the difference between this number and the specified value. |
Float64 |
minus(Float64 that)
Returns the difference between this number and the one specified. |
Float64 |
opposite()
Returns the opposite of this number. |
Float64 |
plus(double value)
Returns the sum of this number with the specified value. |
Float64 |
plus(Float64 that)
Returns the sum of this number with the one specified. |
Float64 |
pow(double e)
Returns this number raised to the specified power. |
Float64 |
pow(Float64 that)
Returns this number raised to the power of the specified exponent. |
Float64 |
sqrt()
Returns the positive square root of this number. |
Float64 |
times(double value)
Returns the product of this number with the specified value. |
Float64 |
times(Float64 that)
Returns the product of this number with the one specified. |
Text |
toText()
Returns the decimal text representation of this number. |
static Float64 |
valueOf(java.lang.CharSequence chars)
Returns the number for the specified character sequence. |
static Float64 |
valueOf(double doubleValue)
Returns the 64 bits float from the specified double value. |
| Methods inherited from class org.jscience.mathematics.numbers.Number |
|---|
byteValue, floatValue, intValue, isGreaterThan, isLessThan, move, pow, shortValue |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javolution.context.Realtime |
|---|
move |
| Field Detail |
|---|
protected static final XMLFormat<Float64> XML
value attribute
holding the textual representation.
public static final Float64 ZERO
public static final Float64 ONE
| Method Detail |
|---|
public static Float64 valueOf(double doubleValue)
double value.
doubleValue - the double value for this number.
doubleValue()public static Float64 valueOf(java.lang.CharSequence chars)
chars - the character sequence.
public boolean isInfinite()
true if this number is infinite;
false otherwise.public boolean isNaN()
true if this number is NaN;
false otherwise.public Float64 opposite()
opposite in interface GroupAdditive<Float64>-this.public Float64 plus(Float64 that)
plus in interface GroupAdditive<Float64>that - the number to be added.
this + that.public Float64 plus(double value)
value - the value to be added.
this + value.public Float64 minus(Float64 that)
minus in class Number<Float64>that - the number to be subtracted.
this - that.public Float64 minus(double value)
value - the value to be subtracted.
this - value.public Float64 times(Float64 that)
times in interface GroupMultiplicative<Float64>times in interface Ring<Float64>that - the number multiplier.
this · that.public Float64 times(double value)
value - the value multiplier.
this · value.public Float64 inverse()
inverse in interface GroupMultiplicative<Float64>1 / this.public Float64 divide(Float64 that)
that - the number divisor.
this / that.public Float64 divide(double value)
value - the value divisor.
this / value.public boolean equal(double value)
value - the value to compare with.
this.doubleValue() == value.public boolean isLessThan(double value)
value - the value to compare with.
this.doubleValue() < value.public boolean isGreaterThan(double value)
value - the value to compare with.
this.doubleValue() > value.public boolean isLargerThan(Float64 that)
isLargerThan in class Number<Float64>that - the number to compare with.
|this| > |that|public boolean isLargerThan(double value)
value - the value to compare with.
|this| > |value|public Float64 abs()
|this|.public Float64 sqrt()
sqrt(this).public Float64 exp()
exp(this).public Float64 log()
log(this).public Float64 pow(Float64 that)
that - the exponent.
this**that.public Float64 pow(double e)
e - the exponent.
this**e.public Text toText()
toText in interface RealtimetoText in class Number<Float64>public boolean equals(java.lang.Object that)
equals in class Number<Float64>that - the object to compare with.
true if the objects are the same;
false otherwise.public int hashCode()
hashCode in class Number<Float64>public long longValue()
Numberlong.
longValue in class Number<Float64>long.public double doubleValue()
Numberdouble.
doubleValue in class Number<Float64>double.public int compareTo(Float64 that)
Number(x.compareTo(y)==0) == (x.equals(y)),
compareTo in interface java.lang.Comparable<Float64>compareTo in class Number<Float64>that - the number to be compared.
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||