Java Utililty Methods atan

List of utility methods to do atan

Description

The list of methods to do atan are organized into topic(s).

Method

doubleatan_66s(double x)
atas
double x2 = x * x;
return (x * (c1 + x2 * c2) / (c3 + x2));
doubleatan_mag1(double x)
atamag
if (true) {
    if (Math.abs(x) > 1)
        System.out.printf("ATAN_MAG1: %15f\n", x);
    final double p0 = -0.000158023363661;
    final double p1 = 1.003839939589617;
    final double p2 = -0.016224975245612;
    final double p3 = -0.343317496147292;
    final double p4 = 0.141501628812858;
...
doubleatanAlternative(double y, double x)
atan Alternative
if (x == 0) {
    if (y < 0) {
        return -piHalf;
    } else {
        return piHalf;
return Math.atan(y / x);
...
doubleatanD(final double arg)
atan D
if (Double.POSITIVE_INFINITY == arg)
    return 90.0;
else if (Double.NEGATIVE_INFINITY == arg)
    return -90.0;
else
    return Math.toDegrees(Math.atan(arg));