Here you can find the source of cos(double anAngle)
public static double cos(double anAngle)
//package com.java2s; public class Main { /**/*w ww . j a v a2 s. co m*/ * Returns the cos of the given angle in degrees. */ public static double cos(double anAngle) { return Math.cos(Math.toRadians(anAngle)); } }