1254 |
|
|
1255 |
/** |
/** |
1256 |
* Super precision for 2/pi in 24-bit chunks, for use in |
* Super precision for 2/pi in 24-bit chunks, for use in |
1257 |
* {@link #remPiOver2()}. |
* {@link #remPiOver2(double, double[])}. |
1258 |
*/ |
*/ |
1259 |
private static final int TWO_OVER_PI[] = { |
private static final int TWO_OVER_PI[] = { |
1260 |
0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62, |
0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62, |
1272 |
|
|
1273 |
/** |
/** |
1274 |
* Super precision for pi/2 in 24-bit chunks, for use in |
* Super precision for pi/2 in 24-bit chunks, for use in |
1275 |
* {@link #remPiOver2()}. |
* {@link #remPiOver2(double, double[])}. |
1276 |
*/ |
*/ |
1277 |
private static final double PI_OVER_TWO[] = { |
private static final double PI_OVER_TWO[] = { |
1278 |
1.570796251296997, // Long bits 0x3ff921fb40000000L. |
1.570796251296997, // Long bits 0x3ff921fb40000000L. |
1286 |
}; |
}; |
1287 |
|
|
1288 |
/** |
/** |
1289 |
* More constants related to pi, used in {@link #remPiOver2()} and |
* More constants related to pi, used in |
1290 |
* elsewhere. |
* {@link #remPiOver2(double, double[])} and elsewhere. |
1291 |
*/ |
*/ |
1292 |
private static final double |
private static final double |
1293 |
PI_L = 1.2246467991473532e-16, // Long bits 0x3ca1a62633145c07L. |
PI_L = 1.2246467991473532e-16, // Long bits 0x3ca1a62633145c07L. |
1301 |
/** |
/** |
1302 |
* Natural log and square root constants, for calculation of |
* Natural log and square root constants, for calculation of |
1303 |
* {@link #exp(double)}, {@link #log(double)} and |
* {@link #exp(double)}, {@link #log(double)} and |
1304 |
* {@link #power(double, double)}. CP is 2/(3*ln(2)). |
* {@link #pow(double, double)}. CP is 2/(3*ln(2)). |
1305 |
*/ |
*/ |
1306 |
private static final double |
private static final double |
1307 |
SQRT_1_5 = 1.224744871391589, // Long bits 0x3ff3988e1409212eL. |
SQRT_1_5 = 1.224744871391589, // Long bits 0x3ff3988e1409212eL. |