Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs() - Method in class com.mvohm.quadruple.Quadruple
-
Returns a new instance of
Quadruplewith the value of the absolute value of this instance - add(double) - Method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
doublesummand to the value of this Quadruple. - add(long) - Method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
longsummand to the value of this Quadruple. - add(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
Quadruplesummand to the value of this Quadruple. - add(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
double op2to the value ofQuadruple op1and creates a new instance of Quadruple containing the sum. - add(Quadruple, long) - Static method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
long op2to the value ofQuadruple op1and creates a new instance of Quadruple containing the sum. - add(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Adds the value of the given
Quadruple op2to the value ofQuadruple op1and creates a new instance of Quadruple containing the sum. - assign(boolean, int, long, long) - Method in class com.mvohm.quadruple.Quadruple
-
Builds a Quadruple value from the given low-level parts and assigns it to the instance.
Treats theexponentparameter as the biased exponent value, so that its value equal toEXPONENT_OF_ONE(0xFFFF_FFFEL) corresponds to theQuadruplevalue of 1.0. - assign(double) - Method in class com.mvohm.quadruple.Quadruple
-
Converts the given value to quadruple and assigns it to the instance.
Expands exponent to 32 bits preserving its value, and expands mantissa to 128 bits, filling with zeroes the least significant 76 bits that absent in the double value. - assign(int, long, long) - Method in class com.mvohm.quadruple.Quadruple
-
Builds a non-negative Quadruple value from the given low-level parts and assigns it to the instance.
Treats theexponentparameter as the biased exponent value, so that its value equal toEXPONENT_OF_ONE(0xFFFF_FFFEL) corresponds to theQuadruplevalue of 1.0. - assign(long) - Method in class com.mvohm.quadruple.Quadruple
-
Converts the given value to quadruple and assigns it to the instance.
To find the mantissa, shifts the bits of the absolute value of the parameter left, so that its most significant non-zero bit (that stands for the 'implicit unity' of the floating point formats) gets shifted out, then corrects the exponent depending on the shift distance and sets the sign in accordance with the initial sign of the parameter. - assign(long[]) - Method in class com.mvohm.quadruple.Quadruple
-
Builds a Quadruple from the low-level parts given as an array of
long.
The elements of the array are expected to contain the following values: - assign(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the given value to the instance (copies the values of the private fields of the parameter to the respective fields of this instance).
- assign(String) - Method in class com.mvohm.quadruple.Quadruple
-
Parses the given String that is expected to contain floating-point value in any conventional string form or a string designation of one of special values, and assigns the corresponding value to the instance.
Parsing is case-insensitive.
The admittable string designations for special values are the following: "Quadruple.MIN_VALUE", "MIN_VALUE", "Quadruple.MAX_VALUE", "MAX_VALUE", "Quadruple.MIN_NORMAL", "MIN_NORMAL", "Quadruple.NaN", "NaN", "Quadruple.NEGATIVE_INFINITY", "NEGATIVE_INFINITY", "-INFINITY", "Quadruple.POSITIVE_INFINITy", "POSITIVE_INFINITY", "INFINITY", "+INFINITY".
If the exact value of the number represented by the input string is greater than the nearest exactQuadruplevalue by less than0.5 - 1e-17of the least significant bit of the mantissa of the latter, it gets rounded down to the aforementionedQuadruplevalue.
If it is greater by 0.5 LSB or more, it gets rounded up to the greater adjacent Quadruple value.
In cases when difference between the input value and the nearestQuadruplevalue is between(0.5 - 1e-17) * LSBand0.5 * LSB, the direction of the rounding is unpredictable. - assign(BigDecimal) - Method in class com.mvohm.quadruple.Quadruple
-
Converts the given value to
Quadruple, and assigns it to the instance.
If the source value can't be represented asQuadrupleexactly, it gets rounded to a 129-bit value (implicit unity + 128 bits of the fractional part of the mantissa) according to the 'half-up' rule. - assignIeee754(byte[]) - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the value of a IEEE-754 quadruple value passed in as an array of 16
bytes containing the 128 bits of the IEEE-754 quadruple to the given instance.
The passed in array of longs is expected to be big-endian, in other words thevalue[0]should contain the sign bit, and the high-order 7 bits of the IEEE-754 quadruple's exponent, and thevalue[15]is expected to contain the least significant 8 bits of the significand.
The argument remains unchanged. - assignIeee754(long[]) - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the value of a IEEE-754 quadruple value passed in as an array of two
longs containing the 128 bits of the IEEE-754 quadruple to the given instance.
The passed in array of longs is expected to be big-endian, in other words thevalue[0]should contain the sign bit, the exponent, and the most significant 48 bits of the significand.
The argument remains unchanged. - assignMax(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Assigns to this instance the maximum of the values of
thisinstance and the operand. - assignMin(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Assigns to this instance the minimum of the values of
thisinstance and the operand. - assignNaN() - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the value of "Not a Number" (
NaN) to this instance. - assignNegativeInfinity() - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the value of
-Infinityto this instance. - assignPositiveInfinity() - Method in class com.mvohm.quadruple.Quadruple
-
Assigns the value of
+Infinityto this instance. - assignWithUnbiasedExponent(boolean, int, long, long) - Method in class com.mvohm.quadruple.Quadruple
-
Builds a Quadruple value from the given low-level parts and assigns it to the instance.
Treats theexponentparameter as the unbiased exponent value, whose0value corresponds to theQuadruplevalue of 1.0. - assignWithUnbiasedExponent(int, long, long) - Method in class com.mvohm.quadruple.Quadruple
-
Builds a non-negative Quadruple value from the given low-level parts and assigns it to the instance.
Treats theexponentparameter as the unbiased exponent value, whose0value corresponds to theQuadruplevalue of 1.0.
B
- bigDecimalValue() - Method in class com.mvohm.quadruple.Quadruple
-
Builds and returns a
BigDecimalinstance holding the same value as the given Quadruple (rounded to 100 significant decimal digits).
C
- com.mvohm.quadruple - package com.mvohm.quadruple
-
Class
Quadruplerepresents a floating-point number with 128 bits of the fractional part of the mantissa and 32 bits of exponent. - compare(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Compares the values of two instances.
- compareMagnitudes(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Compares the magnitudes (absolute values) of the two Quadruples.
- compareMagnitudeTo(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Compares the magnitude (absolute value) of this instance with the magnitude of the other instance.
- compareTo(double) - Method in class com.mvohm.quadruple.Quadruple
-
Compares the value of this instance with the specified
doublevalue. - compareTo(long) - Method in class com.mvohm.quadruple.Quadruple
-
Compares the value of this instance with the specified
longvalue. - compareTo(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Compares the value of this instance with the value of the specified instance.
D
- divide(double) - Method in class com.mvohm.quadruple.Quadruple
-
Divides the value of this Quadruple by the value of the given
doubledivisor. - divide(long) - Method in class com.mvohm.quadruple.Quadruple
-
Divides the value of this Quadruple by the value of the given
longdivisor. - divide(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Divides the value of this Quadruple by the value of the given
Quadrupledivisor. - divide(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
-
Divides the value of the given dividend by the value of the given
doubledivisor, creates and returns a new instance of Quadruple containing the quotient. - divide(Quadruple, long) - Static method in class com.mvohm.quadruple.Quadruple
-
Divides the value of the given dividend by the value of the given
longdivisor, creates and returns a new instance of Quadruple containing the quotient. - divide(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Divides the value of the given dividend by the value of the given
Quadrupledivisor, creates and returns a new instance of Quadruple containing the quotient. - doubleValue() - Method in class com.mvohm.quadruple.Quadruple
-
Converts the value of this
Quadrupleto adoublevalue in a way similar to standard narrowing conversions (e.g., fromdoubletofloat).
E
- equals(Object) - Method in class com.mvohm.quadruple.Quadruple
-
Indicates whether the other
Quadrupleis equal to this one. - EXP_INF - Static variable in class com.mvohm.quadruple.Quadruple
-
Deprecated.
- EXP_MAX - Static variable in class com.mvohm.quadruple.Quadruple
-
Deprecated.
- EXP_MIN - Static variable in class com.mvohm.quadruple.Quadruple
-
Deprecated.
- EXP_OF_ONE - Static variable in class com.mvohm.quadruple.Quadruple
-
Deprecated.
- EXP_SUB - Static variable in class com.mvohm.quadruple.Quadruple
-
Deprecated.
- exponent() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the raw (biased) value of the binary exponent of the value i. e. 0x7FFF_FFFF for values falling within the interval of
[1.0 .. 2.0), 0x8000_0000 for[2.0 .. 4.0)etc. - EXPONENT_BIAS - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased) corresponding to
1.0 == 2^0; equals to 2_147_483_647 (0x7FFF_FFFF) The same asEXPONENT_OF_ONE - EXPONENT_OF_INFINITY - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased), corresponding to
Infinity,_Infinty, andNaN; equals to -1 (0xFFFF_FFFF) - EXPONENT_OF_MAX_VALUE - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased), corresponding to
MAX_VALUE; equals to 4_294_967_294L (0xFFFF_FFFEL) - EXPONENT_OF_MIN_NORMAL - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased) corresponding to
MIN_NORMAL; equals to 1 - EXPONENT_OF_ONE - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased) corresponding to
1.0 == 2^0; equals to 2_147_483_647 (0x7FFF_FFFF). - EXPONENT_OF_SUBNORMAL - Static variable in class com.mvohm.quadruple.Quadruple
-
The value of the exponent (biased) corresponding to subnormal values; equals to 0
F
- floatValue() - Method in class com.mvohm.quadruple.Quadruple
-
Converts the value of this
Quadrupleto afloatvalue in a way similar to standard narrowing conversions (e.g., fromdoubletofloat). - format(String) - Method in class com.mvohm.quadruple.Quadruple
-
Returns a
Stringrepresenting the value of this instance in a form defined by theformatparameter.
H
- hashCode() - Method in class com.mvohm.quadruple.Quadruple
-
Computes a hashcode for this
Quadruple, based on the values of its fields.
I
- intValue() - Method in class com.mvohm.quadruple.Quadruple
-
Converts the value of this
Quadrupleto anintvalue in a way similar to standard narrowing conversions (e.g., fromdoubletoint). - isInfinite() - Method in class com.mvohm.quadruple.Quadruple
-
Checks if the value is infinite (i.e
NEGATIVE_INFINITYorPOSITIVE_INFINITY). - isNaN() - Method in class com.mvohm.quadruple.Quadruple
-
Checks if the value is not a number (i.e. has the value of
NaN). - isNegative() - Method in class com.mvohm.quadruple.Quadruple
-
Checks if the value is negative.
- isZero() - Method in class com.mvohm.quadruple.Quadruple
-
Checks if the value is zero, either positive or negative.
L
- longValue() - Method in class com.mvohm.quadruple.Quadruple
-
Converts the value of this
Quadrupleto alongvalue in a way similar to standard narrowing conversions (e.g., fromdoubletolong).
M
- mantHi() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the most significant 64 bits of the fractional part of the mantissa.
- mantLo() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the least significant 64 bits of the fractional part of the mantissa
- max(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new instance of
Quadruplewith the value of the maximum of the values of the operands. - maxValue() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value ofMAX_VALUE
(2^2147483647 * (2 - 2^-128)= 1.76161305168396335320749314979184028566452310e+646456993) - min(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new instance of
Quadruplewith the value of the minimum of the values of the operands. - minNormal() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value ofMIN_NORMAL
(2^-2147483646= 2.27064621040149253752656726517958758124747730e-646456993) - minValue() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value ofMIN_VALUE
(2^-2147483774= 6.67282948260747430814835377499134611597699952e-646457032) - multiply(double) - Method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of this Quadruple by the value of the given
doublefactor. - multiply(long) - Method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of this Quadruple by the value of the given
longfactor. - multiply(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of this Quadruple by the value of the given
Quadruplefactor. - multiply(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of the given
Quadruple factor1by thedouble factor2, creates and returns a new instance of Quadruple containing the product. - multiply(Quadruple, long) - Static method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of the given
Quadruple factor1by thelong factor2, creates and returns a new instance of Quadruple containing the product. - multiply(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Multiplies the value of the given
Quadruple factor1by theQuadruple factor2, creates and returns a new instance of Quadruple containing the product.
N
- nan() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value ofNaN. - negate() - Method in class com.mvohm.quadruple.Quadruple
-
Changes the sign of this Quadruple.
- negativeInfinity() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of-Infinity. - nextRandom() - Static method in class com.mvohm.quadruple.Quadruple
-
Creates a new Quadruple instance with a pseudo-random value using a static randomly initialized
java.util.Randominstance. - nextRandom(Random) - Static method in class com.mvohm.quadruple.Quadruple
-
Creates a new Quadruple instance with a pseudo-random value using the given
java.util.Randominstance.
O
- one() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of 1.0.
P
- pi() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of the numberπ(pi) (3.141592653589793238462643383279502884195) - positiveInfinity() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of+Infinity.
Q
- Quadruple - Class in com.mvohm.quadruple
-
A floating-point number with a 128-bit fractional part of the mantissa and 32-bit exponent.
- Quadruple() - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new instance of
Quadruplewith value 0.0 - Quadruple(boolean, int, long, long) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadruplebuilt from the given parts. - Quadruple(double) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadrupleinstance with the givendoublevalue.
First creates an empty (zero) instance, then assigns the given value to the new instance, usingassign(double). - Quadruple(int, long, long) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadruplewith a positive value built from the given parts. - Quadruple(long) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadruplewith the givenlongvalue.
First creates an empty (zero) instance, then assigns the given value to the new instance, usingassign(long). - Quadruple(Quadruple) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadrupleinstance with the value of the givenQuadrupleinstance.
First creates an empty (zero) instance, then copies the fields of the parameter. - Quadruple(String) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadruplewith the value represented by the givenString.
First creates an empty (zero) instance, then assigns the given value to the new instance, converting the string to the corresponding floating-point value. - Quadruple(BigDecimal) - Constructor for class com.mvohm.quadruple.Quadruple
-
Creates a new
Quadruplewith the value of the givenBigDecimalinstance.
First creates an empty (zero) instance, then assigns the given value to the new instance, converting the BigDecimal to respective floating-point value
S
- signum() - Method in class com.mvohm.quadruple.Quadruple
-
Returns 1 for positive values, -1 for negative values (including -0), and 0 for the positive zero value
- sqrt() - Method in class com.mvohm.quadruple.Quadruple
-
Computes a square root of the value of this
Quadrupleand replaces the old value of this instance with the newly-computed value. - sqrt(Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Computes a square root of the value of the given
Quadruple, creates and returns a new instance of Quadruple containing the value of the square root. - subtract(double) - Method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the given
doublesubtrahend from the value of this Quadruple. - subtract(long) - Method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the given
longsubtrahend from the value of this Quadruple. - subtract(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the given
Quadruplesubtrahend from the value of this Quadruple. - subtract(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the
doublesubtrahendfrom the value of theminuend, creates and returns a new instance of Quadruple that contains the difference. - subtract(Quadruple, long) - Static method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the
longsubtrahendfrom the value of theminuend, creates and returns a new instance of Quadruple that contains the difference. - subtract(Quadruple, Quadruple) - Static method in class com.mvohm.quadruple.Quadruple
-
Subtracts the value of the
Quadruplesubtrahendfrom the value of theminuend, creates and returns a new instance of Quadruple that contains the difference.
T
- ten() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of 10.0. - toHexString() - Method in class com.mvohm.quadruple.Quadruple
-
Returns a
Stringcontaining a hexadecimal representation of the instance's value, consisting of sign, two 64-bit words of mantissa, and exponent preceded by letter 'e', with '_' separating the tetrads of hexadecimal digits. - toIeee754Bytes() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the 128 bits of an IEEE-754 quadruple precision number nearest to the value of
thisinstance as an array of 16bytes, containing a physical representation of the standard IEEE-754 quadruple-precision floating-point number.
The order of bytes is big-endian, so that the sign bit and the most significant bits of the exponent is returned in result[0], and the least significant bits of the mantissa in result[15]. - toIeee754Longs() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the 128 bits of an IEEE-754 quadruple precision number nearest to the value of
thisinstance as an array of twolongs, containing a physical representation of the standard IEEE-754 quadruple-precision floating-point number.
The order of words is big-endian, so that the sign bit, exponent and 48 most significant bits of the mantissa are returned in result[0], and 64 least significant bits of the mantissa in result[1]. - toLongWords() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the fields of the instance that make up it's value as an array of
longs.
The elements of the array contain the following values: - toString() - Method in class com.mvohm.quadruple.Quadruple
-
Returns a decimal string representation of the value of this
Quadruplein a scientific (exponential) notation, rounded to 43 digits after point.
For other String representations, seeformat(String) - two() - Static method in class com.mvohm.quadruple.Quadruple
-
Returns a new
Quadrupleinstance with the value of 2.0.
U
- unbiasedExponent() - Method in class com.mvohm.quadruple.Quadruple
-
Returns the unbiased value of binary exponent, i. e. 0 for values falling within the interval of
[1.0 .. 2.0), 1 for[2.0 .. 4.0)etc.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form