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

tan

Tangent function

Description

tan calculates and outputs the tangent of any given number.

Arguments

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

Messages

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

Information for box attributes common to all objects

Output

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

Examples

See Also

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