Java atan atan(double a)

Here you can find the source of atan(double a)

Description

Returns the arc tangent of an angle, in the range of -pi/2 through pi/2.

License

Open Source License

Parameter

Parameter Description
a the value whose arc tangent is to be returned.

Return

the arc tangent of the argument.

Declaration

public static double atan(double a) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   w  w w  . ja v  a  2  s . c  o m*/
     * Returns the arc tangent of an angle, in the range of -<i>pi</i>/2 through
     * <i>pi</i>/2. Special cases:
     * 
     * <ul>
     * <li>
     * If the argument is NaN, then the result is NaN.</li>
     * <li>
     * If the argument is zero, then the result is a zero with the same sign as
     * the argument.</li>
     * </ul>
     * 
     * <p>
     * A result must be within 1 ulp of the correctly rounded result. Results
     * must be semi-monotonic.
     * </p>
     * 
     * @param a
     *            the value whose arc tangent is to be returned.
     * 
     * @return the arc tangent of the argument.
     */
    public static double atan(double a) {
        return Math.atan(a);
    }
}

Related

  1. atan(double a)
  2. atan(double arg)
  3. atan(double x)
  4. atan(float tan_value)
  5. atan(float value)