CPD Results
The following document contains the results of PMD's CPD 6.55.0.
Duplications
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
28 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1536 |
private static final double[] EXP_INT_A = new double[] {
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
+8.218407798110846E307d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
};
/** Exponential evaluated at integer values.
* <pre>
* exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX]
* </pre>
*/
private static final double[] EXP_INT_B = new double[] { |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1489 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1538 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2997 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
30 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1490 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1539 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2998 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
31 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1491 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1540 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2999 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
32 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1492 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1541 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3000 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
33 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1493 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1542 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3001 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
34 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1494 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1543 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3002 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
35 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1495 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1544 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3003 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
36 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1496 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1545 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3004 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
37 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1497 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1546 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3005 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
38 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
203 |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
249 |
static double slowCos(final double x, final double[] result) {
final double[] xs = new double[2];
final double[] ys = new double[2];
final double[] facts = new double[2];
final double[] as = new double[2];
split(x, xs);
ys[0] = ys[1] = 0.0;
for (int i = FACT.length - 1; i >= 0; i--) {
splitMult(xs, ys, as);
ys[0] = as[0];
ys[1] = as[1];
if ((i & 1) != 0) { // skip odd entries |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1498 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1547 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3006 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
39 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
217 |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
262 |
if ((i & 1) != 0) { // skip odd entries
continue;
}
split(FACT[i], as);
splitReciprocal(as, facts);
if ((i & 2) != 0) { // alternate terms are negative
facts[0] = -facts[0];
facts[1] = -facts[1];
}
splitAdd(ys, facts, as);
ys[0] = as[0]; ys[1] = as[1];
}
if (result != null) {
result[0] = ys[0];
result[1] = ys[1];
}
return ys[0] + ys[1];
}
/**
* For x between 0 and pi/4 compute sine using Taylor expansion:
* sin(x) = x - x^3/3! + x^5/5! - x^7/7! ...
* @param x number from which sine is requested
* @param result placeholder where to put the result in extended precision
* (may be null)
* @return sin(x)
*/
static double slowSin(final double x, final double[] result) { |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1499 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1548 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3007 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
40 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
203 |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
249 |
org/apache/commons/math4/core/jdkmath/AccurateMathCalc.java |
294 |
static double slowCos(final double x, final double[] result) {
final double[] xs = new double[2];
final double[] ys = new double[2];
final double[] facts = new double[2];
final double[] as = new double[2];
split(x, xs);
ys[0] = ys[1] = 0.0;
for (int i = FACT.length - 1; i >= 0; i--) {
splitMult(xs, ys, as);
ys[0] = as[0];
ys[1] = as[1]; |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
414 |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
493 |
exp(x, 0.0, hiPrec);
double ya = hiPrec[0] + hiPrec[1];
double yb = -(ya - hiPrec[0] - hiPrec[1]);
double temp = ya * HEX_40000000;
double yaa = ya + temp - temp;
double yab = ya - yaa;
// recip = 1/y
double recip = 1.0 / ya;
temp = recip * HEX_40000000;
double recipa = recip + temp - temp;
double recipb = recip - recipa;
// Correct for rounding in division
recipb += (1.0 - yaa * recipa - yaa * recipb - yab * recipa - yab * recipb) * recip;
// Account for yb
recipb += -yb * recip * recip; |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
2354 |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
2419 |
}
if (xa != xa || xa == Double.POSITIVE_INFINITY) {
return Double.NaN;
}
/* Perform any argument reduction */
double xb = 0;
if (xa > 3294198.0) {
// PI * (2**20)
// Argument too big for CodyWaite reduction. Must use
// PayneHanek.
double[] reduceResults = new double[3];
reducePayneHanek(xa, reduceResults);
quadrant = ((int) reduceResults[0]) & 3;
xa = reduceResults[1];
xb = reduceResults[2];
} else if (xa > 1.5707963267948966) {
final CodyWaite cw = new CodyWaite(xa);
quadrant = cw.getK() & 3;
xa = cw.getRemA();
xb = cw.getRemB();
} |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1500 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1549 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3008 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
41 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1501 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1550 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3009 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
42 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
624 |
org/apache/commons/math4/core/jdkmath/AccurateMath.java |
662 |
temp = da + yb;
db += -(temp - da - yb);
da = temp;
temp = da * HEX_40000000;
double daa = da + temp - temp;
double dab = da - daa;
// ratio = na/da
double ratio = na / da;
temp = ratio * HEX_40000000;
double ratioa = ratio + temp - temp;
double ratiob = ratio - ratioa;
// Correct for rounding in division
ratiob += (na - daa * ratioa - daa * ratiob - dab * ratioa - dab * ratiob) / da;
// Account for nb
ratiob += nb / da;
// Account for db
ratiob += -db * na / da / da;
result = ratioa + ratiob;
} else { |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1502 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1551 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3010 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
43 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
29 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1503 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1552 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
3011 |
+0.0d,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
File |
Line |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
44 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1488 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
1537 |
org/apache/commons/math4/core/jdkmath/AccurateMathLiteralArrays.java |
2996 |
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN,
Double.NaN, |
|