Here you can find the source of cos(double a)
Parameter | Description |
---|---|
a | an angle, in radians. |
public static double cos(double a)
//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); } }