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])

Previous topic

numpy.cos

Next topic

numpy.arcsin

This Page

Quick search