Java cos cos(double a)

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

Description

Returns the trigonometric cosine of an angle.

License

Open Source License

Parameter

Parameter Description
a an angle, in radians.

Return

the cosine of the argument.

Declaration

public static double cos(double a) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from w w w.jav  a 2 s .c o m*/
     * Returns the trigonometric cosine of an angle. Special cases:
     * 
     * <ul>
     * <li>
     * If the argument is NaN or an infinity, 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
     *            an angle, in radians.
     * 
     * @return the cosine of the argument.
     */
    public static double cos(double a) {
        return Math.cos(a);
    }
}

Related

  1. cos(double anAngle)
  2. cos(double d)
  3. cos(double radians)
  4. cos(double[] v1, double[] v2)