FusePowered
×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2524 | Released: 18 Dec 2014, 12:24pm | What's New | Download Now

math.tan()

Description:

Returns the tangent of a value (assumed to be in radians).

Syntax:

math.tan (x)

Example:

print (math.tan (-math.pi/2))   ---> a very large negative number
print (math.tan (math.pi/4))    ---> 1
print (math.tan (math.pi/2))    ---> a very large number

Parameters:

x
A number.

Returns:

A number.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0