Calculates the tangent of a number.
Tan ( expression )
Parameters
expression | Value in radians. |
Return Value
Returns the trigonometric tangent of number.
Remarks
1░ = pi / 180 radians.
Related
Sin, Cos, ASin, ACos, ATan
Example
$pi = 3.14159265358979
$x = tan($pi / 4)
$degToRad = $pi / 180
$y = Tan(90 * $degToRad) ;tangent of 90░