Java atan atanD(final double arg)

Here you can find the source of atanD(final double arg)

Description

atan D

License

Apache License

Declaration

static final public double atanD(final double arg) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    static final public double atanD(final double arg) {
        // handle special cases first
        if (Double.POSITIVE_INFINITY == arg)
            return 90.0;
        else if (Double.NEGATIVE_INFINITY == arg)
            return -90.0;
        else//from  w w w  . j a  v  a  2 s .c o  m
            return Math.toDegrees(Math.atan(arg));
    }
}

Related

  1. atan(Integer a)
  2. atan(Number x)
  3. atan_66s(double x)
  4. atan_mag1(double x)
  5. atanAlternative(double y, double x)