Index

A B C D E F H I L M N O P Q S T U 
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 Quadruple with the value of the absolute value of this instance
add(double) - Method in class com.mvohm.quadruple.Quadruple
Adds the value of the given double summand to the value of this Quadruple.
add(long) - Method in class com.mvohm.quadruple.Quadruple
Adds the value of the given long summand to the value of this Quadruple.
add(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
Adds the value of the given Quadruple summand to the value of this Quadruple.
add(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
Adds the value of the given double op2 to the value of Quadruple op1 and 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 op2 to the value of Quadruple op1 and 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 op2 to the value of Quadruple op1 and 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 the exponent parameter as the biased exponent value, so that its value equal to EXPONENT_OF_ONE (0xFFFF_FFFEL) corresponds to the Quadruple value 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 the exponent parameter as the biased exponent value, so that its value equal to EXPONENT_OF_ONE (0xFFFF_FFFEL) corresponds to the Quadruple value 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 exact Quadruple value by less than 0.5 - 1e-17 of the least significant bit of the mantissa of the latter, it gets rounded down to the aforementioned Quadruple value.
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 nearest Quadruple value is between (0.5 - 1e-17) * LSB and 0.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 as Quadruple exactly, 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 the value[0] should contain the sign bit, and the high-order 7 bits of the IEEE-754 quadruple's exponent, and the value[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 the value[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 this instance and the operand.
assignMin(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
Assigns to this instance the minimum of the values of this instance 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 -Infinity to this instance.
assignPositiveInfinity() - Method in class com.mvohm.quadruple.Quadruple
Assigns the value of +Infinity to 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 the exponent parameter as the unbiased exponent value, whose 0 value corresponds to the Quadruple value 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 the exponent parameter as the unbiased exponent value, whose 0 value corresponds to the Quadruple value of 1.0.

B

bigDecimalValue() - Method in class com.mvohm.quadruple.Quadruple
Builds and returns a BigDecimal instance holding the same value as the given Quadruple (rounded to 100 significant decimal digits).

C

com.mvohm.quadruple - package com.mvohm.quadruple
Class Quadruple represents 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 double value.
compareTo(long) - Method in class com.mvohm.quadruple.Quadruple
Compares the value of this instance with the specified long value.
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 double divisor.
divide(long) - Method in class com.mvohm.quadruple.Quadruple
Divides the value of this Quadruple by the value of the given long divisor.
divide(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
Divides the value of this Quadruple by the value of the given Quadruple divisor.
divide(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
Divides the value of the given dividend by the value of the given double divisor, 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 long divisor, 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 Quadruple divisor, creates and returns a new instance of Quadruple containing the quotient.
doubleValue() - Method in class com.mvohm.quadruple.Quadruple
Converts the value of this Quadruple to a double value in a way similar to standard narrowing conversions (e.g., from double to float).

E

equals(Object) - Method in class com.mvohm.quadruple.Quadruple
Indicates whether the other Quadruple is 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 as EXPONENT_OF_ONE
EXPONENT_OF_INFINITY - Static variable in class com.mvohm.quadruple.Quadruple
The value of the exponent (biased), corresponding to Infinity, _Infinty, and NaN; 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 Quadruple to a float value in a way similar to standard narrowing conversions (e.g., from double to float).
format(String) - Method in class com.mvohm.quadruple.Quadruple
Returns a String representing the value of this instance in a form defined by the format parameter.

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 Quadruple to an int value in a way similar to standard narrowing conversions (e.g., from double to int).
isInfinite() - Method in class com.mvohm.quadruple.Quadruple
Checks if the value is infinite (i.e NEGATIVE_INFINITY or POSITIVE_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 Quadruple to a long value in a way similar to standard narrowing conversions (e.g., from double to long).

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 Quadruple with the value of the maximum of the values of the operands.
maxValue() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance with the value of MAX_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 Quadruple with the value of the minimum of the values of the operands.
minNormal() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance with the value of MIN_NORMAL
(2^-2147483646 = 2.27064621040149253752656726517958758124747730e-646456993)
minValue() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance with the value of MIN_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 double factor.
multiply(long) - Method in class com.mvohm.quadruple.Quadruple
Multiplies the value of this Quadruple by the value of the given long factor.
multiply(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
Multiplies the value of this Quadruple by the value of the given Quadruple factor.
multiply(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
Multiplies the value of the given Quadruple factor1 by the double 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 factor1 by the long 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 factor1 by the Quadruple 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 Quadruple instance with the value of NaN.
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 Quadruple instance 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.Random instance.
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.Random instance.

O

one() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance with the value of 1.0.

P

pi() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance with the value of the number π (pi) (3.141592653589793238462643383279502884195)
positiveInfinity() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance 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 Quadruple with value 0.0
Quadruple(boolean, int, long, long) - Constructor for class com.mvohm.quadruple.Quadruple
Creates a new Quadruple built from the given parts.
Quadruple(double) - Constructor for class com.mvohm.quadruple.Quadruple
Creates a new Quadruple instance with the given double value.
First creates an empty (zero) instance, then assigns the given value to the new instance, using assign(double).
Quadruple(int, long, long) - Constructor for class com.mvohm.quadruple.Quadruple
Creates a new Quadruple with a positive value built from the given parts.
Quadruple(long) - Constructor for class com.mvohm.quadruple.Quadruple
Creates a new Quadruple with the given long value.
First creates an empty (zero) instance, then assigns the given value to the new instance, using assign(long).
Quadruple(Quadruple) - Constructor for class com.mvohm.quadruple.Quadruple
Creates a new Quadruple instance with the value of the given Quadruple instance.
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 Quadruple with the value represented by the given String.
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 Quadruple with the value of the given BigDecimal instance.
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 Quadruple and 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 double subtrahend from the value of this Quadruple.
subtract(long) - Method in class com.mvohm.quadruple.Quadruple
Subtracts the value of the given long subtrahend from the value of this Quadruple.
subtract(Quadruple) - Method in class com.mvohm.quadruple.Quadruple
Subtracts the value of the given Quadruple subtrahend from the value of this Quadruple.
subtract(Quadruple, double) - Static method in class com.mvohm.quadruple.Quadruple
Subtracts the value of the double subtrahend from the value of the minuend, 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 long subtrahend from the value of the minuend, 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 Quadruple subtrahend from the value of the minuend, 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 Quadruple instance with the value of 10.0.
toHexString() - Method in class com.mvohm.quadruple.Quadruple
Returns a String containing 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 this instance as an array of 16 bytes, 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 this instance as an array of two longs, 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 Quadruple in a scientific (exponential) notation, rounded to 43 digits after point.
For other String representations, see format(String)
two() - Static method in class com.mvohm.quadruple.Quadruple
Returns a new Quadruple instance 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.
A B C D E F H I L M N O P Q S T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form