Here you can find the source of tan(float angle)
public static float tan(float angle)
//package com.java2s; //License from project: Open Source License public class Main { public static float tan(float angle) { return (float) Math.tan(angle); }//from w ww.j a va2 s .co m }