Here you can find the source of cosd(double x)
public static final double cosd(double x)
//package com.java2s; //License from project: Open Source License public class Main { /** Cos() in degres */ public static final double cosd(double x) { return Math.cos(x * (Math.PI / 180.0)); }//from ww w. j ava2s .c o m }