This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
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])