A newer version of Max is available. Click here to access the latest version of this document.

tanh

Hyperbolic tangent function

Description

tanh calculates and outputs the hyperbolic tangent of any given number.

Arguments

Name Type Opt Description
initial-value float or int opt Sets the initial value for the hyperbolic tangent function.

Messages

bang In left inlet: Calculates the hyperbolic tangent of the number currently stored. If there is no argument, tanh initially holds 0.
int input [int]
Input to a hyperbolic tangent function.
float input [float]
Input to a hyperbolic tangent function.

Information for box attributes common to all objects

Output

float: The hyperbolic tangent of the input.
int: The hyperbolic tangent of the input.

Examples

See Also

Name Description
atan Arc-tangent function
atan2 Arc-tangent function (two variables)
atanh Hyperbolic arc-tangent function
tan Tangent function