### Navigation

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

# numpy.tan

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

  Compute tangent element-wise.

  Parameters: | x : array_like Angles in radians.
  Returns: | y : ndarray The corresponding tangent values.

  Examples

      >>> from math import pi
      >>> np.tan(np.array([-pi,pi/2,pi]))
      array([  1.22460635e-16,   1.63317787e+16,  -1.22460635e-16])

### Navigation

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