mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 01:59:13 +00:00
"final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1581381 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1879cf1a3d
commit
6ab8b14847
@ -2433,7 +2433,6 @@ public class FastMath {
|
|||||||
*/
|
*/
|
||||||
private static double atan(double xa, double xb, boolean leftPlane) {
|
private static double atan(double xa, double xb, boolean leftPlane) {
|
||||||
boolean negate = false;
|
boolean negate = false;
|
||||||
int idx;
|
|
||||||
|
|
||||||
if (xa == 0.0) { // Matches +/- 0.0; return correct sign
|
if (xa == 0.0) { // Matches +/- 0.0; return correct sign
|
||||||
return leftPlane ? copySign(Math.PI, xa) : xa;
|
return leftPlane ? copySign(Math.PI, xa) : xa;
|
||||||
@ -2451,6 +2450,7 @@ public class FastMath {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Estimate the closest tabulated arctan value, compute eps = xa-tangentTable */
|
/* Estimate the closest tabulated arctan value, compute eps = xa-tangentTable */
|
||||||
|
final int idx;
|
||||||
if (xa < 1) {
|
if (xa < 1) {
|
||||||
idx = (int) (((-1.7168146928204136 * xa * xa + 8.0) * xa) + 0.5);
|
idx = (int) (((-1.7168146928204136 * xa * xa + 8.0) * xa) + 0.5);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user