Math: tan(double doubleValue)
/* * Output: tan = 0.005236035605700127 */ public class MainClass { public static void main(String args[]) { double radians = 0.30 * Math.PI/180; System.out.println("tan = " + Math.tan(radians)); } }