Compute the cosine of an number
y = cos (x)
The cos function computes the cosine of a number and returns the result as an array. If its argument is an array, the cos function will be applied to each element and the result returned as an array.