Y = cos(X) returns
the cosine for each element of X. The cos
function operates element-wise on arrays. The function accepts both real and complex
inputs.
For real values of X, cos(X)
returns real values in the interval [-1, 1].
For complex values of X,
cos(X) returns complex values.