×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2478 | Released: 25 Oct 2014, 1:35am | What's New | Download Now

math.tanh()

Description:

Returns the hyperbolic tangent of a value.

Syntax:

math.tanh (x)

Example:

print (math.tanh (math.log (2)))   ---> 0.6

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