The mathTan() function returns the tangent of a number.
mathTan()
0.12.0
A number (given in radians)
The tangent of the given number
mathTan(0); // 0mathTan(Math.PI / 4); // 1 (approximately)mathTan(Math.PI / 2); // Infinity or a very large number (depending on implementation) Copy
mathTan(0); // 0mathTan(Math.PI / 4); // 1 (approximately)mathTan(Math.PI / 2); // Infinity or a very large number (depending on implementation)
Returns the tangent of a number.
A numeric expression that contains an angle measured in radians.
The
mathTan()
function returns the tangent of a number.Since
0.12.0
Param: x
A number (given in radians)
Returns
The tangent of the given number
Example