Java tutorial
//package com.java2s; public class Main { public static float cos(double degree) { return (float) Math.cos(Math.toRadians(degree)); } }