A B C D E F G H I L M N P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- abs(double) - Static method in class net.jafama.FastMath
- abs(double) - Static method in class net.jafama.StrictFastMath
- abs(float) - Static method in class net.jafama.FastMath
- abs(float) - Static method in class net.jafama.StrictFastMath
- abs(int) - Static method in class net.jafama.NumbersUtils
-
Possibly faster than java.lang.Math.abs(int).
- abs(long) - Static method in class net.jafama.NumbersUtils
-
Possibly faster than java.lang.Math.abs(long).
- absNeg(int) - Static method in class net.jafama.NumbersUtils
- absNeg(long) - Static method in class net.jafama.NumbersUtils
- acos(double) - Static method in class net.jafama.FastMath
- acos(double) - Static method in class net.jafama.StrictFastMath
- acosh(double) - Static method in class net.jafama.FastMath
-
Some properties of acosh(x) = log(x + sqrt(x^2 - 1)): 1) defined on [1,+Infinity[ 2) result in ]0,+Infinity[ (by convention, since cosh(x) = cosh(-x)) 3) acosh(1) = 0 4) acosh(1+epsilon) ~= log(1 + sqrt(2*epsilon)) ~= sqrt(2*epsilon) 5) lim(acosh(x),x->+Infinity) = +Infinity (y increasing logarithmically slower than x)
- acosh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of acosh(x) = log(x + sqrt(x^2 - 1)): 1) defined on [1,+Infinity[ 2) result in ]0,+Infinity[ (by convention, since cosh(x) = cosh(-x)) 3) acosh(1) = 0 4) acosh(1+epsilon) ~= log(1 + sqrt(2*epsilon)) ~= sqrt(2*epsilon) 5) lim(acosh(x),x->+Infinity) = +Infinity (y increasing logarithmically slower than x)
- acosh1p(double) - Static method in class net.jafama.FastMath
-
Much more accurate than acosh(1+value), for arguments (and results) close to zero.
- acosh1p(double) - Static method in class net.jafama.StrictFastMath
-
Much more accurate than acosh(1+value), for arguments (and results) close to zero.
- acosInRange(double) - Static method in class net.jafama.FastMath
-
If value is not NaN and is outside [-1,1] range, closest value in this range is used.
- acosInRange(double) - Static method in class net.jafama.StrictFastMath
-
If value is not NaN and is outside [-1,1] range, closest value in this range is used.
- asByte(int) - Static method in class net.jafama.NumbersUtils
-
Not defining an asByte(long) method, since asByte((int)aLong) works.
- asin(double) - Static method in class net.jafama.FastMath
- asin(double) - Static method in class net.jafama.StrictFastMath
- asinh(double) - Static method in class net.jafama.FastMath
-
Some properties of asinh(x) = log(x + sqrt(x^2 + 1)) 1) defined on ]-Infinity,+Infinity[ 2) result in ]-Infinity,+Infinity[ 3) asinh(x) = -asinh(-x) (implies asinh(0) = 0) 4) asinh(epsilon) ~= epsilon 5) lim(asinh(x),x->+Infinity) = +Infinity (y increasing logarithmically slower than x)
- asinh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of asinh(x) = log(x + sqrt(x^2 + 1)) 1) defined on ]-Infinity,+Infinity[ 2) result in ]-Infinity,+Infinity[ 3) asinh(x) = -asinh(-x) (implies asinh(0) = 0) 4) asinh(epsilon) ~= epsilon 5) lim(asinh(x),x->+Infinity) = +Infinity (y increasing logarithmically slower than x)
- asinInRange(double) - Static method in class net.jafama.FastMath
-
If value is not NaN and is outside [-1,1] range, closest value in this range is used.
- asinInRange(double) - Static method in class net.jafama.StrictFastMath
-
If value is not NaN and is outside [-1,1] range, closest value in this range is used.
- asInt(long) - Static method in class net.jafama.NumbersUtils
- atan(double) - Static method in class net.jafama.FastMath
- atan(double) - Static method in class net.jafama.StrictFastMath
- atan2(double, double) - Static method in class net.jafama.FastMath
-
For special values for which multiple conventions could be adopted, behaves like Math.atan2(double,double).
- atan2(double, double) - Static method in class net.jafama.StrictFastMath
-
For special values for which multiple conventions could be adopted, behaves like StrictMath.atan2(double,double).
- atanh(double) - Static method in class net.jafama.FastMath
-
Some properties of atanh(x) = log((1+x)/(1-x))/2: 1) defined on ]-1,1[ 2) result in ]-Infinity,+Infinity[ 3) atanh(-1) = -Infinity (by continuity) 4) atanh(1) = +Infinity (by continuity) 5) atanh(epsilon) ~= epsilon 6) lim(atanh(x),x->1) = +Infinity
- atanh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of atanh(x) = log((1+x)/(1-x))/2: 1) defined on ]-1,1[ 2) result in ]-Infinity,+Infinity[ 3) atanh(-1) = -Infinity (by continuity) 4) atanh(1) = +Infinity (by continuity) 5) atanh(epsilon) ~= epsilon 6) lim(atanh(x),x->1) = +Infinity
B
- bitSizeForSignedValue(int) - Static method in class net.jafama.NumbersUtils
- bitSizeForSignedValue(long) - Static method in class net.jafama.NumbersUtils
- bitSizeForUnsignedValue(int) - Static method in class net.jafama.NumbersUtils
- bitSizeForUnsignedValue(long) - Static method in class net.jafama.NumbersUtils
- byteAsUnsigned(byte) - Static method in class net.jafama.NumbersUtils
C
- cbrt(double) - Static method in class net.jafama.FastMath
- cbrt(double) - Static method in class net.jafama.StrictFastMath
- ceil(double) - Static method in class net.jafama.FastMath
- ceil(double) - Static method in class net.jafama.StrictFastMath
- ceil(float) - Static method in class net.jafama.FastMath
- ceil(float) - Static method in class net.jafama.StrictFastMath
- ceilingPowerOfTwo(int) - Static method in class net.jafama.NumbersUtils
- ceilingPowerOfTwo(long) - Static method in class net.jafama.NumbersUtils
- ceilToInt(double) - Static method in class net.jafama.FastMath
- ceilToInt(double) - Static method in class net.jafama.StrictFastMath
- checkBitPositionsByte(int, int) - Static method in class net.jafama.NumbersUtils
- checkBitPositionsInt(int, int) - Static method in class net.jafama.NumbersUtils
- checkBitPositionsLong(int, int) - Static method in class net.jafama.NumbersUtils
- checkBitPositionsShort(int, int) - Static method in class net.jafama.NumbersUtils
- checkBitSizeForSignedInt(int) - Static method in class net.jafama.NumbersUtils
- checkBitSizeForSignedLong(int) - Static method in class net.jafama.NumbersUtils
- checkBitSizeForUnsignedInt(int) - Static method in class net.jafama.NumbersUtils
- checkBitSizeForUnsignedLong(int) - Static method in class net.jafama.NumbersUtils
- checkIsInRange(double, double, double) - Static method in class net.jafama.NumbersUtils
- checkIsInRange(float, float, float) - Static method in class net.jafama.NumbersUtils
- checkIsInRange(int, int, int) - Static method in class net.jafama.NumbersUtils
- checkIsInRange(long, long, long) - Static method in class net.jafama.NumbersUtils
- checkIsInRangeSigned(int, int) - Static method in class net.jafama.NumbersUtils
- checkIsInRangeSigned(long, int) - Static method in class net.jafama.NumbersUtils
- checkIsInRangeUnsigned(int, int) - Static method in class net.jafama.NumbersUtils
- checkIsInRangeUnsigned(long, int) - Static method in class net.jafama.NumbersUtils
- checkRadix(int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfChars(int, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfChars(int, int, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfChars(long, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfChars(long, int, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfDigits(int, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfDigits(int, int, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfDigits(long, int) - Static method in class net.jafama.NumbersUtils
- computeNbrOfDigits(long, int, int) - Static method in class net.jafama.NumbersUtils
- copySign(double, double) - Static method in class net.jafama.FastMath
-
A sign of NaN can be interpreted as positive or negative.
- copySign(double, double) - Static method in class net.jafama.StrictFastMath
-
A sign of NaN is interpreted as positive.
- copySign(float, float) - Static method in class net.jafama.FastMath
-
A sign of NaN can be interpreted as positive or negative.
- copySign(float, float) - Static method in class net.jafama.StrictFastMath
-
A sign of NaN is interpreted as positive.
- cos(double) - Static method in class net.jafama.FastMath
- cos(double) - Static method in class net.jafama.StrictFastMath
- cosh(double) - Static method in class net.jafama.FastMath
-
Some properties of cosh(x) = (exp(x)+exp(-x))/2: 1) defined on ]-Infinity,+Infinity[ 2) result in [1,+Infinity[ 3) cosh(0) = 1 4) cosh(x) = cosh(-x) 5) lim(cosh(x),x->+Infinity) = +Infinity (y increasing exponentially faster than x) 6) reaches +Infinity (double overflow) for x >= 710.475860073944, i.e.
- cosh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of cosh(x) = (exp(x)+exp(-x))/2: 1) defined on ]-Infinity,+Infinity[ 2) result in [1,+Infinity[ 3) cosh(0) = 1 4) cosh(x) = cosh(-x) 5) lim(cosh(x),x->+Infinity) = +Infinity (y increasing exponentially faster than x) 6) reaches +Infinity (double overflow) for x >= 710.475860073944, i.e.
- coshm1(double) - Static method in class net.jafama.FastMath
-
Much more accurate than cosh(value)-1, for arguments (and results) close to zero.
- coshm1(double) - Static method in class net.jafama.StrictFastMath
-
Much more accurate than cosh(value)-1, for arguments (and results) close to zero.
- cosQuick(double) - Static method in class net.jafama.FastMath
-
Quick cos, with accuracy of about 1.6e-3 (PI/
) for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/ )), and no accuracy at all for larger values. - cosQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick cos, with accuracy of about 1.6e-3 (PI/
) for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/ )), and no accuracy at all for larger values.
D
- DOUBLE_MIN_NORMAL - Static variable in class net.jafama.NumbersUtils
-
Double.MIN_NORMAL since Java 6.
- DoubleWrapper - Class in net.jafama
- DoubleWrapper() - Constructor for class net.jafama.DoubleWrapper
E
- equal(double, double) - Static method in class net.jafama.NumbersUtils
- equal(float, float) - Static method in class net.jafama.NumbersUtils
- exp(double) - Static method in class net.jafama.FastMath
- exp(double) - Static method in class net.jafama.StrictFastMath
- expm1(double) - Static method in class net.jafama.FastMath
-
Much more accurate than exp(value)-1, for arguments (and results) close to zero.
- expm1(double) - Static method in class net.jafama.StrictFastMath
-
Much more accurate than exp(value)-1, for arguments (and results) close to zero.
- expQuick(double) - Static method in class net.jafama.FastMath
-
Quick exp, with a max relative error of about 2.94e-2 for |value| < 700.0 or so, and no accuracy at all outside this range.
- expQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick exp, with a max relative error of about 2.94e-2 for |value| < 700.0 or so, and no accuracy at all outside this range.
F
- FastMath - Class in net.jafama
-
Faster (hopefully) versions of java.lang.Math methods, plus additional ones.
- FLOAT_MIN_NORMAL - Static variable in class net.jafama.NumbersUtils
-
Float.MIN_NORMAL since Java 6.
- floor(double) - Static method in class net.jafama.FastMath
- floor(double) - Static method in class net.jafama.StrictFastMath
- floor(float) - Static method in class net.jafama.FastMath
- floor(float) - Static method in class net.jafama.StrictFastMath
- floorPowerOfTwo(int) - Static method in class net.jafama.NumbersUtils
- floorPowerOfTwo(long) - Static method in class net.jafama.NumbersUtils
- floorToInt(double) - Static method in class net.jafama.FastMath
- floorToInt(double) - Static method in class net.jafama.StrictFastMath
G
- getExponent(double) - Static method in class net.jafama.FastMath
- getExponent(double) - Static method in class net.jafama.StrictFastMath
- getExponent(float) - Static method in class net.jafama.FastMath
- getExponent(float) - Static method in class net.jafama.StrictFastMath
H
- haveSameEvenness(int, int) - Static method in class net.jafama.NumbersUtils
- haveSameEvenness(long, long) - Static method in class net.jafama.NumbersUtils
- haveSameSign(int, int) - Static method in class net.jafama.NumbersUtils
- haveSameSign(long, long) - Static method in class net.jafama.NumbersUtils
- hypot(double, double) - Static method in class net.jafama.FastMath
- hypot(double, double) - Static method in class net.jafama.StrictFastMath
- hypot(double, double, double) - Static method in class net.jafama.FastMath
- hypot(double, double, double) - Static method in class net.jafama.StrictFastMath
I
- IEEEremainder(double, double) - Static method in class net.jafama.FastMath
- IEEEremainder(double, double) - Static method in class net.jafama.StrictFastMath
- intAsUnsigned(int) - Static method in class net.jafama.NumbersUtils
- intHash(long) - Static method in class net.jafama.NumbersUtils
-
If the specified value is in int range, the returned value is identical.
- intMaskLSBits0(int) - Static method in class net.jafama.NumbersUtils
- intMaskLSBits1(int) - Static method in class net.jafama.NumbersUtils
- intMaskMSBits0(int) - Static method in class net.jafama.NumbersUtils
- intMaskMSBits1(int) - Static method in class net.jafama.NumbersUtils
- IntWrapper - Class in net.jafama
- IntWrapper() - Constructor for class net.jafama.IntWrapper
- invSqrtQuick(double) - Static method in class net.jafama.FastMath
-
Quick inverse of square root, with a max relative error of about 3.44e-2 for values in [Double.MIN_NORMAL,Double.MAX_VALUE], and worse accuracy outside this range.
- invSqrtQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick inverse of square root, with a max relative error of about 3.44e-2 for values in [Double.MIN_NORMAL,Double.MAX_VALUE], and worse accuracy outside this range.
- isEquidistant(double) - Static method in class net.jafama.NumbersUtils
- isEquidistant(float) - Static method in class net.jafama.NumbersUtils
- isEven(int) - Static method in class net.jafama.NumbersUtils
- isEven(long) - Static method in class net.jafama.NumbersUtils
- isInClockwiseDomain(double, double, double) - Static method in class net.jafama.FastMath
-
NB: Since 2*Math.PI < 2*PI, a span of 2*Math.PI does not mean full angular range.
- isInClockwiseDomain(double, double, double) - Static method in class net.jafama.StrictFastMath
-
NB: Since 2*Math.PI < 2*PI, a span of 2*Math.PI does not mean full angular range.
- isInRange(double, double, double) - Static method in class net.jafama.NumbersUtils
-
Returns false if any value is NaN.
- isInRange(float, float, float) - Static method in class net.jafama.NumbersUtils
-
Returns false if any value is NaN.
- isInRange(int, int, int) - Static method in class net.jafama.NumbersUtils
- isInRange(long, long, long) - Static method in class net.jafama.NumbersUtils
- isInRangeSigned(int, int) - Static method in class net.jafama.NumbersUtils
- isInRangeSigned(long, int) - Static method in class net.jafama.NumbersUtils
- isInRangeUnsigned(int, int) - Static method in class net.jafama.NumbersUtils
- isInRangeUnsigned(long, int) - Static method in class net.jafama.NumbersUtils
- isMathematicalInteger(double) - Static method in class net.jafama.NumbersUtils
- isMathematicalInteger(float) - Static method in class net.jafama.NumbersUtils
- isNaNOrInfinite(double) - Static method in class net.jafama.FastMath
- isNaNOrInfinite(double) - Static method in class net.jafama.NumbersUtils
- isNaNOrInfinite(double) - Static method in class net.jafama.StrictFastMath
- isNaNOrInfinite(float) - Static method in class net.jafama.FastMath
- isNaNOrInfinite(float) - Static method in class net.jafama.NumbersUtils
- isNaNOrInfinite(float) - Static method in class net.jafama.StrictFastMath
- isOdd(int) - Static method in class net.jafama.NumbersUtils
- isOdd(long) - Static method in class net.jafama.NumbersUtils
- isPowerOfTwo(int) - Static method in class net.jafama.NumbersUtils
- isPowerOfTwo(long) - Static method in class net.jafama.NumbersUtils
- isSignedPowerOfTwo(int) - Static method in class net.jafama.NumbersUtils
- isSignedPowerOfTwo(long) - Static method in class net.jafama.NumbersUtils
- isValidBitSizeForSignedInt(int) - Static method in class net.jafama.NumbersUtils
- isValidBitSizeForSignedLong(int) - Static method in class net.jafama.NumbersUtils
- isValidBitSizeForUnsignedInt(int) - Static method in class net.jafama.NumbersUtils
- isValidBitSizeForUnsignedLong(int) - Static method in class net.jafama.NumbersUtils
L
- log(double) - Static method in class net.jafama.FastMath
- log(double) - Static method in class net.jafama.StrictFastMath
- log10(double) - Static method in class net.jafama.FastMath
- log10(double) - Static method in class net.jafama.StrictFastMath
- log1p(double) - Static method in class net.jafama.FastMath
-
Much more accurate than log(1+value), for arguments (and results) close to zero.
- log1p(double) - Static method in class net.jafama.StrictFastMath
-
Much more accurate than log(1+value), for arguments (and results) close to zero.
- log2(int) - Static method in class net.jafama.NumbersUtils
- log2(long) - Static method in class net.jafama.NumbersUtils
- logQuick(double) - Static method in class net.jafama.FastMath
-
Quick log, with a max relative error of about 1.9e-3 for values in ]Double.MIN_NORMAL,+Infinity[, and worse accuracy outside this range.
- logQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick log, with a max relative error of about 1.9e-3 for values in ]Double.MIN_NORMAL,+Infinity[, and worse accuracy outside this range.
- longMaskLSBits0(int) - Static method in class net.jafama.NumbersUtils
- longMaskLSBits1(int) - Static method in class net.jafama.NumbersUtils
- longMaskMSBits0(int) - Static method in class net.jafama.NumbersUtils
- longMaskMSBits1(int) - Static method in class net.jafama.NumbersUtils
M
- max(double, double) - Static method in class net.jafama.FastMath
- max(double, double) - Static method in class net.jafama.StrictFastMath
- max(float, float) - Static method in class net.jafama.FastMath
- max(float, float) - Static method in class net.jafama.StrictFastMath
- maxSignedIntForBitSize(int) - Static method in class net.jafama.NumbersUtils
- maxSignedLongForBitSize(int) - Static method in class net.jafama.NumbersUtils
- maxUnsignedIntForBitSize(int) - Static method in class net.jafama.NumbersUtils
- maxUnsignedLongForBitSize(int) - Static method in class net.jafama.NumbersUtils
- meanLow(int, int) - Static method in class net.jafama.NumbersUtils
- meanLow(long, long) - Static method in class net.jafama.NumbersUtils
- meanSml(int, int) - Static method in class net.jafama.NumbersUtils
- meanSml(long, long) - Static method in class net.jafama.NumbersUtils
- min(double, double) - Static method in class net.jafama.FastMath
- min(double, double) - Static method in class net.jafama.StrictFastMath
- min(float, float) - Static method in class net.jafama.FastMath
- min(float, float) - Static method in class net.jafama.StrictFastMath
- minSignedIntForBitSize(int) - Static method in class net.jafama.NumbersUtils
- minSignedLongForBitSize(int) - Static method in class net.jafama.NumbersUtils
- minus2PI(double) - Static method in class net.jafama.NumbersUtils
- minus2PI_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- minusBounded(int, int) - Static method in class net.jafama.NumbersUtils
- minusBounded(long, long) - Static method in class net.jafama.NumbersUtils
- minusExact(int, int) - Static method in class net.jafama.NumbersUtils
- minusExact(long, long) - Static method in class net.jafama.NumbersUtils
- minusPI(double) - Static method in class net.jafama.NumbersUtils
- minusPI_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- minusPIO2(double) - Static method in class net.jafama.NumbersUtils
- minusPIO2_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- moduloSignedPowerOfTwo(int, int) - Static method in class net.jafama.NumbersUtils
-
This treatment being designed for optimization, the fact that spot is a signed power of two is not checked.
- moduloSignedPowerOfTwo(long, long) - Static method in class net.jafama.NumbersUtils
-
This treatment being designed for optimization, the fact that spot is a signed power of two is not checked.
N
- negHalfWidth(int, int) - Static method in class net.jafama.NumbersUtils
-
Useful because a positive int value could not represent half the width of full int range width, which is mathematically Integer.MAX_VALUE+1.
- negHalfWidth(long, long) - Static method in class net.jafama.NumbersUtils
-
Useful because a positive long value could not represent half the width of full long range width, which is mathematically Long.MAX_VALUE+1.
- net.jafama - package net.jafama
- nextAfter(double, double) - Static method in class net.jafama.FastMath
-
If both arguments are +-0.0, direction is returned.
- nextAfter(double, double) - Static method in class net.jafama.StrictFastMath
-
If both arguments are +-0.0, direction is returned.
- nextAfter(float, double) - Static method in class net.jafama.FastMath
-
If both arguments are +-0.0(f), (float)direction is returned.
- nextAfter(float, double) - Static method in class net.jafama.StrictFastMath
-
If both arguments are +-0.0(f), (float)direction is returned.
- nextDown(double) - Static method in class net.jafama.FastMath
-
Semantically equivalent to nextAfter(start,Double.NEGATIVE_INFINITY).
- nextDown(double) - Static method in class net.jafama.StrictFastMath
-
Semantically equivalent to nextAfter(start,Double.NEGATIVE_INFINITY).
- nextDown(float) - Static method in class net.jafama.FastMath
-
Semantically equivalent to nextAfter(start,Double.NEGATIVE_INFINITY).
- nextDown(float) - Static method in class net.jafama.StrictFastMath
-
Semantically equivalent to nextAfter(start,Double.NEGATIVE_INFINITY).
- nextUp(double) - Static method in class net.jafama.FastMath
-
Semantically equivalent to nextAfter(start,Double.POSITIVE_INFINITY).
- nextUp(double) - Static method in class net.jafama.StrictFastMath
-
Semantically equivalent to nextAfter(start,Double.POSITIVE_INFINITY).
- nextUp(float) - Static method in class net.jafama.FastMath
-
Semantically equivalent to nextAfter(start,Double.POSITIVE_INFINITY).
- nextUp(float) - Static method in class net.jafama.StrictFastMath
-
Semantically equivalent to nextAfter(start,Double.POSITIVE_INFINITY).
- normalizeMinusHalfPiHalfPi(double) - Static method in class net.jafama.FastMath
- normalizeMinusHalfPiHalfPi(double) - Static method in class net.jafama.StrictFastMath
- normalizeMinusHalfPiHalfPiFast(double) - Static method in class net.jafama.FastMath
-
Not accurate for large values.
- normalizeMinusHalfPiHalfPiFast(double) - Static method in class net.jafama.StrictFastMath
-
Not accurate for large values.
- normalizeMinusPiPi(double) - Static method in class net.jafama.FastMath
- normalizeMinusPiPi(double) - Static method in class net.jafama.StrictFastMath
- normalizeMinusPiPiFast(double) - Static method in class net.jafama.FastMath
-
Not accurate for large values.
- normalizeMinusPiPiFast(double) - Static method in class net.jafama.StrictFastMath
-
Not accurate for large values.
- normalizeZeroTwoPi(double) - Static method in class net.jafama.FastMath
- normalizeZeroTwoPi(double) - Static method in class net.jafama.StrictFastMath
- normalizeZeroTwoPiFast(double) - Static method in class net.jafama.FastMath
-
Not accurate for large values.
- normalizeZeroTwoPiFast(double) - Static method in class net.jafama.StrictFastMath
-
Not accurate for large values.
- NumbersUtils - Class in net.jafama
-
Class containing various basic utility methods to deal with numbers.
P
- plus2PI(double) - Static method in class net.jafama.NumbersUtils
- plus2PI_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- plusBounded(int, int) - Static method in class net.jafama.NumbersUtils
- plusBounded(long, long) - Static method in class net.jafama.NumbersUtils
- plusExact(int, int) - Static method in class net.jafama.NumbersUtils
- plusExact(long, long) - Static method in class net.jafama.NumbersUtils
- plusPI(double) - Static method in class net.jafama.NumbersUtils
- plusPI_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- plusPIO2(double) - Static method in class net.jafama.NumbersUtils
- plusPIO2_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- pow(double, double) - Static method in class net.jafama.FastMath
-
1e-13ish accuracy or better on whole double range.
- pow(double, double) - Static method in class net.jafama.StrictFastMath
-
1e-13ish accuracy or better on whole double range.
- pow2(double) - Static method in class net.jafama.FastMath
- pow2(double) - Static method in class net.jafama.NumbersUtils
- pow2(double) - Static method in class net.jafama.StrictFastMath
- pow2(float) - Static method in class net.jafama.FastMath
- pow2(float) - Static method in class net.jafama.NumbersUtils
- pow2(float) - Static method in class net.jafama.StrictFastMath
- pow2(int) - Static method in class net.jafama.NumbersUtils
- pow2(long) - Static method in class net.jafama.NumbersUtils
- pow2_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- pow2_strict(float) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- pow3(double) - Static method in class net.jafama.FastMath
- pow3(double) - Static method in class net.jafama.NumbersUtils
- pow3(double) - Static method in class net.jafama.StrictFastMath
- pow3(float) - Static method in class net.jafama.FastMath
- pow3(float) - Static method in class net.jafama.NumbersUtils
- pow3(float) - Static method in class net.jafama.StrictFastMath
- pow3(int) - Static method in class net.jafama.NumbersUtils
- pow3(long) - Static method in class net.jafama.NumbersUtils
- pow3_strict(double) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- pow3_strict(float) - Static method in class net.jafama.NumbersUtils
-
Strict version.
- powFast(double, int) - Static method in class net.jafama.FastMath
-
This treatment is somehow accurate for low values of |power|, and for |power*getExponent(value)| < 1023 or so (to stay away from double extreme magnitudes (large and small)).
- powFast(double, int) - Static method in class net.jafama.StrictFastMath
-
This treatment is somehow accurate for low values of |power|, and for |power*getExponent(value)| < 1023 or so (to stay away from double extreme magnitudes (large and small)).
- powQuick(double, double) - Static method in class net.jafama.FastMath
-
Quick pow, with a max relative error of about 1e-2 for value >= Double.MIN_NORMAL and 1e-10 < |value^power| < 1e10, of about 6e-2 for value >= Double.MIN_NORMAL and 1e-40 < |value^power| < 1e40, and worse accuracy otherwise.
- powQuick(double, double) - Static method in class net.jafama.StrictFastMath
-
Quick pow, with a max relative error of about 1e-2 for value >= Double.MIN_NORMAL and 1e-10 < |value^power| < 1e10, of about 6e-2 for value >= Double.MIN_NORMAL and 1e-40 < |value^power| < 1e40, and worse accuracy otherwise.
R
- random() - Static method in class net.jafama.FastMath
- random() - Static method in class net.jafama.StrictFastMath
- remainder(double, double) - Static method in class net.jafama.FastMath
-
Returns dividend - divisor * n, where n is the mathematical integer closest to dividend/divisor.
- remainder(double, double) - Static method in class net.jafama.StrictFastMath
-
Returns dividend - divisor * n, where n is the mathematical integer closest to dividend/divisor.
- rint(double) - Static method in class net.jafama.FastMath
- rint(double) - Static method in class net.jafama.StrictFastMath
- rint(float) - Static method in class net.jafama.FastMath
- rint(float) - Static method in class net.jafama.StrictFastMath
- round(double) - Static method in class net.jafama.FastMath
-
Might have different semantics than Math.round(double), see bugs 6430675 and 8010430.
- round(double) - Static method in class net.jafama.StrictFastMath
-
Might have different semantics than StrictMath.round(double), see bugs 6430675 and 8010430.
- round(float) - Static method in class net.jafama.FastMath
-
Might have different semantics than Math.round(float), see bugs 6430675 and 8010430.
- round(float) - Static method in class net.jafama.StrictFastMath
-
Might have different semantics than StrictMath.round(float), see bugs 6430675 and 8010430.
- roundEven(double) - Static method in class net.jafama.FastMath
- roundEven(double) - Static method in class net.jafama.StrictFastMath
- roundEven(float) - Static method in class net.jafama.FastMath
- roundEven(float) - Static method in class net.jafama.StrictFastMath
- roundEvenToInt(double) - Static method in class net.jafama.FastMath
- roundEvenToInt(double) - Static method in class net.jafama.StrictFastMath
- roundToInt(double) - Static method in class net.jafama.FastMath
- roundToInt(double) - Static method in class net.jafama.StrictFastMath
S
- scalb(double, int) - Static method in class net.jafama.FastMath
-
Precision may be lost if the result is subnormal.
- scalb(double, int) - Static method in class net.jafama.StrictFastMath
-
Precision may be lost if the result is subnormal.
- scalb(float, int) - Static method in class net.jafama.FastMath
-
Precision may be lost if the result is subnormal.
- scalb(float, int) - Static method in class net.jafama.StrictFastMath
-
Precision may be lost if the result is subnormal.
- shortAsUnsigned(short) - Static method in class net.jafama.NumbersUtils
- signFromBit(double) - Static method in class net.jafama.FastMath
- signFromBit(double) - Static method in class net.jafama.NumbersUtils
- signFromBit(double) - Static method in class net.jafama.StrictFastMath
- signFromBit(float) - Static method in class net.jafama.FastMath
- signFromBit(float) - Static method in class net.jafama.NumbersUtils
- signFromBit(float) - Static method in class net.jafama.StrictFastMath
- signum(double) - Static method in class net.jafama.FastMath
- signum(double) - Static method in class net.jafama.StrictFastMath
- signum(float) - Static method in class net.jafama.FastMath
- signum(float) - Static method in class net.jafama.StrictFastMath
- signum(int) - Static method in class net.jafama.NumbersUtils
- signum(long) - Static method in class net.jafama.NumbersUtils
- sin(double) - Static method in class net.jafama.FastMath
- sin(double) - Static method in class net.jafama.StrictFastMath
- sinAndCos(double, DoubleWrapper) - Static method in class net.jafama.FastMath
-
Computes sine and cosine together.
- sinAndCos(double, DoubleWrapper) - Static method in class net.jafama.StrictFastMath
-
Computes sine and cosine together.
- sinh(double) - Static method in class net.jafama.FastMath
-
Some properties of sinh(x) = (exp(x)-exp(-x))/2: 1) defined on ]-Infinity,+Infinity[ 2) result in ]-Infinity,+Infinity[ 3) sinh(x) = -sinh(-x) (implies sinh(0) = 0) 4) sinh(epsilon) ~= epsilon 5) lim(sinh(x),x->+Infinity) = +Infinity (y increasing exponentially faster than x) 6) reaches +Infinity (double overflow) for x >= 710.475860073944, i.e.
- sinh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of sinh(x) = (exp(x)-exp(-x))/2: 1) defined on ]-Infinity,+Infinity[ 2) result in ]-Infinity,+Infinity[ 3) sinh(x) = -sinh(-x) (implies sinh(0) = 0) 4) sinh(epsilon) ~= epsilon 5) lim(sinh(x),x->+Infinity) = +Infinity (y increasing exponentially faster than x) 6) reaches +Infinity (double overflow) for x >= 710.475860073944, i.e.
- sinhAndCosh(double, DoubleWrapper) - Static method in class net.jafama.FastMath
-
Computes hyperbolic sine and hyperbolic cosine together.
- sinhAndCosh(double, DoubleWrapper) - Static method in class net.jafama.StrictFastMath
-
Computes hyperbolic sine and hyperbolic cosine together.
- sinQuick(double) - Static method in class net.jafama.FastMath
-
Quick sin, with accuracy of about 1.6e-3 (PI/
) for |angle| < 6588395.0 (Integer.MAX_VALUE * (2*PI/ ) - 2) (- 2 due to removing PI/2 before using cosine tab), and no accuracy at all for larger values. - sinQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick sin, with accuracy of about 1.6e-3 (PI/
) for |angle| < 6588395.0 (Integer.MAX_VALUE * (2*PI/ ) - 2) (- 2 due to removing PI/2 before using cosine tab), and no accuracy at all for larger values. - sqrt(double) - Static method in class net.jafama.FastMath
- sqrt(double) - Static method in class net.jafama.StrictFastMath
- sqrtQuick(double) - Static method in class net.jafama.FastMath
-
Quick sqrt, with with a max relative error of about 3.41e-2 for values in [Double.MIN_NORMAL,Double.MAX_VALUE], and worse accuracy outside this range.
- sqrtQuick(double) - Static method in class net.jafama.StrictFastMath
-
Quick sqrt, with with a max relative error of about 3.41e-2 for values in [Double.MIN_NORMAL,Double.MAX_VALUE], and worse accuracy outside this range.
- StrictFastMath - Class in net.jafama
-
Strict versions of FastMath methods.
T
- tan(double) - Static method in class net.jafama.FastMath
-
Can have very bad relative error near +-PI/2, but of the same magnitude than the relative delta between StrictMath.tan(PI/2) and StrictMath.tan(nextDown(PI/2)).
- tan(double) - Static method in class net.jafama.StrictFastMath
-
Can have very bad relative error near +-PI/2, but of the same magnitude than the relative delta between StrictMath.tan(PI/2) and StrictMath.tan(nextDown(PI/2)).
- tanh(double) - Static method in class net.jafama.FastMath
-
Some properties of tanh(x) = sinh(x)/cosh(x) = (exp(2*x)-1)/(exp(2*x)+1): 1) defined on ]-Infinity,+Infinity[ 2) result in ]-1,1[ 3) tanh(x) = -tanh(-x) (implies tanh(0) = 0) 4) tanh(epsilon) ~= epsilon 5) lim(tanh(x),x->+Infinity) = 1 6) reaches 1 (double loss of precision) for x = 19.061547465398498
- tanh(double) - Static method in class net.jafama.StrictFastMath
-
Some properties of tanh(x) = sinh(x)/cosh(x) = (exp(2*x)-1)/(exp(2*x)+1): 1) defined on ]-Infinity,+Infinity[ 2) result in ]-1,1[ 3) tanh(x) = -tanh(-x) (implies tanh(0) = 0) 4) tanh(epsilon) ~= epsilon 5) lim(tanh(x),x->+Infinity) = 1 6) reaches 1 (double loss of precision) for x = 19.061547465398498
- timesBounded(int, int) - Static method in class net.jafama.NumbersUtils
- timesBounded(long, long) - Static method in class net.jafama.NumbersUtils
- timesExact(int, int) - Static method in class net.jafama.NumbersUtils
- timesExact(long, long) - Static method in class net.jafama.NumbersUtils
- toDegrees(boolean, int, int, double) - Static method in class net.jafama.FastMath
- toDegrees(boolean, int, int, double) - Static method in class net.jafama.StrictFastMath
- toDegrees(double) - Static method in class net.jafama.FastMath
-
Gives same result as Math.toDegrees for some particular values like Math.PI/2, Math.PI or 2*Math.PI, but is faster (no division).
- toDegrees(double) - Static method in class net.jafama.StrictFastMath
-
Gives same result as StrictMath.toDegrees for some particular values like Math.PI/2, Math.PI or 2*Math.PI, but is faster (no division).
- toDMS(double, IntWrapper, IntWrapper, DoubleWrapper) - Static method in class net.jafama.FastMath
- toDMS(double, IntWrapper, IntWrapper, DoubleWrapper) - Static method in class net.jafama.StrictFastMath
- toInt(long) - Static method in class net.jafama.NumbersUtils
- toRadians(boolean, int, int, double) - Static method in class net.jafama.FastMath
- toRadians(boolean, int, int, double) - Static method in class net.jafama.StrictFastMath
- toRadians(double) - Static method in class net.jafama.FastMath
-
Gives same result as Math.toRadians for some particular values like 90.0, 180.0 or 360.0, but is faster (no division).
- toRadians(double) - Static method in class net.jafama.StrictFastMath
-
Gives same result as StrictMath.toRadians for some particular values like 90.0, 180.0 or 360.0, but is faster (no division).
- toRange(double, double, double) - Static method in class net.jafama.FastMath
- toRange(double, double, double) - Static method in class net.jafama.NumbersUtils
- toRange(double, double, double) - Static method in class net.jafama.StrictFastMath
- toRange(float, float, float) - Static method in class net.jafama.FastMath
- toRange(float, float, float) - Static method in class net.jafama.NumbersUtils
- toRange(float, float, float) - Static method in class net.jafama.StrictFastMath
- toRange(int, int, int) - Static method in class net.jafama.NumbersUtils
- toRange(long, long, long) - Static method in class net.jafama.NumbersUtils
- toString() - Method in class net.jafama.DoubleWrapper
- toString() - Method in class net.jafama.IntWrapper
- toString(int) - Static method in class net.jafama.NumbersUtils
-
This method just delegates to Integer.toString(int), but is defined here to complete the API.
- toString(int, int) - Static method in class net.jafama.NumbersUtils
- toString(int, int, int) - Static method in class net.jafama.NumbersUtils
- toString(long) - Static method in class net.jafama.NumbersUtils
-
This method just delegates to Long.toString(long), but is defined here to complete the API.
- toString(long, int) - Static method in class net.jafama.NumbersUtils
- toString(long, int, int) - Static method in class net.jafama.NumbersUtils
- toStringBits(byte) - Static method in class net.jafama.NumbersUtils
- toStringBits(byte, int, int, boolean, boolean) - Static method in class net.jafama.NumbersUtils
- toStringBits(int) - Static method in class net.jafama.NumbersUtils
- toStringBits(int, int, int, boolean, boolean) - Static method in class net.jafama.NumbersUtils
- toStringBits(long) - Static method in class net.jafama.NumbersUtils
- toStringBits(long, int, int, boolean, boolean) - Static method in class net.jafama.NumbersUtils
- toStringBits(short) - Static method in class net.jafama.NumbersUtils
- toStringBits(short, int, int, boolean, boolean) - Static method in class net.jafama.NumbersUtils
- toStringCSN(double) - Static method in class net.jafama.NumbersUtils
- toStringNoCSN(double) - Static method in class net.jafama.NumbersUtils
- twoPow(int) - Static method in class net.jafama.NumbersUtils
-
Returns the exact result, provided it's in double range, i.e.
- twoPowAsIntBounded(int) - Static method in class net.jafama.NumbersUtils
- twoPowAsIntExact(int) - Static method in class net.jafama.NumbersUtils
- twoPowAsLongBounded(int) - Static method in class net.jafama.NumbersUtils
- twoPowAsLongExact(int) - Static method in class net.jafama.NumbersUtils
U
- ulp(double) - Static method in class net.jafama.FastMath
-
The ULP (Unit in the Last Place) is the distance to the next value larger in magnitude.
- ulp(double) - Static method in class net.jafama.StrictFastMath
-
The ULP (Unit in the Last Place) is the distance to the next value larger in magnitude.
- ulp(float) - Static method in class net.jafama.FastMath
-
The ULP (Unit in the Last Place) is the distance to the next value larger in magnitude.
- ulp(float) - Static method in class net.jafama.StrictFastMath
-
The ULP (Unit in the Last Place) is the distance to the next value larger in magnitude.
V
- value - Variable in class net.jafama.DoubleWrapper
- value - Variable in class net.jafama.IntWrapper
All Classes All Packages