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

cos Reference

Cosine function

cos

Description

Use the cos object to calculate and output the cosine of any given number.

Examples

Arguments

initial-value [float or int]

Optional

Sets the initial value for the cosine function.

Attributes

Common Box Attributes

Messages

bang

Calculates the cosine of the number currently stored. If there is no argument, cos initially holds 0.

int

Arguments

input [int]
Input to the cosine function

float

Arguments

input [float]
Input to the cosine function

Output

float

The cosine of the input.

See Also

Name Description
acos
acosh
cosh