Returns a ndarray of Double from the given ndarray to each element of which a cos function has been applied.