cos

Cosine function

Description

cos calculates and outputs the cosine of any given number.

Arguments

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

Messages

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

Information for box attributes common to all objects

Output

float: The cosine of the input.

Examples

See Also

Name Description
acos Arc-cosine function
acosh Hyperbolic arc-cosine function
cosh Hyperbolic cosine function