### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Mathematical functions »

# numpy.cos

`numpy.``cos`(x[, out])

  Cosine elementwise.

  Parameters: | x : array_like Input array in radians.
  Returns: | out : ndarray Output array of same shape as x.

  Examples

      >>> np.cos(np.array([0, np.pi/2, np.pi]))
      array([  1.00000000e+00,   6.12303177e-17,  -1.00000000e+00])

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Mathematical functions »