tan Summary Get the tangent of a number. Usage public static double tan(double x) Returns The tangent of the number. Parameters x The number to get the tangent of (expressed in radians). Description Returns the tangent for a number (expressed in radians). Examples Basic Usage 12345import System; Console.log(Math.tan(0)); // 0Console.log(Math.tan(Math.PI)); // -1.2246467991473532e-16Console.log(Math.tan(0.5)); // 0.5463024898437905 Share HTML | BBCode | Direct Link