numpy.cos()

numpy.cos

numpy.cos(x[, out]) =

Cosine element-wise.

Parameters:

x : array_like

Input array in radians.

out : ndarray, optional

Output array of same shape as x.

Returns:

y : ndarray

The corresponding cosine values.

Raises:

ValueError: invalid return array shape

if out is provided and out.shape != x.shape登录查看完整内容