Java acos acos(double a)

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

Description

Returns the arc cosine of an angle, in the range of 0.0 through pi.

License

Open Source License

Parameter

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

Return

the arc cosine of the argument.

Declaration

public static double acos(double a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from   ww  w .  j  a v a 2s .c  o m*/
     * Returns the arc cosine of an angle, in the range of 0.0 through <i>pi</i>.  Special case:
     * 
     * <ul>
     * <li>
     * If the argument is NaN or its absolute value is greater  than 1, then the result is NaN.
     * </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 cosine is to be returned.
     *
     * @return the arc cosine of the argument.
     */
    public static double acos(double a) {
        return Math.acos(a);
    }
}

Related

  1. acos(double a)
  2. acos(double d)
  3. acos(double x)
  4. acos(double x)