math.tan

Full name
math.tan
Library
math
Syntax

math.tan(x)

Description

The math.tan function returns the tangent of the angle included as an argument.

Parameters
  • x: Angle in radians whose tangent is to be obtained.
Result

The math.tan function returns a real number.

Examples

This function is applied below at various angles:

math.tan(-math.pi / 2)
-1.633123935319537e + 16
math.tan(0)
0.0
math.tan(math.pi / 2)
1.633123935319537e + 16
Submitted by admin on Tue, 02/09/2021 - 08:02