Back to Core Functions
cos
Cosine of argument in radians
Syntax
Y = cos(X)
Description
Computes the cosine of each element. Operates element-wise on arrays.
Parameters
| Name | Description |
|---|---|
| X | Input angle in radians (scalar or NDArray) |
Returns
Cosine values (same shape as input)