Skip to content

Cos

The Cos block applies the cosine function to its input.

y = cos(x)

Port Direction Type
0 Input f32 or f64 scalar, or a fixed-size array of floats
0 Output Same type as input

Arrays are processed element by element.

None.

For input x = 0.0, the output is y = 1.0.