Here you can find the source of sin(double d)
public static double sin(double d)
//package com.java2s; //License from project: LGPL public class Main { public static final double[] SIN_TABLE = new double[65536]; public static double sin(double d) { return SIN_TABLE[(int) ((float) d * 10430.378F) & 65535]; }/*from w ww. j a va 2 s. c o m*/ }