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