jax.numpy.tan

Contents

jax.numpy.tan#

jax.numpy.tan(x, /)#

Compute tangent element-wise.

LAX-backend implementation of numpy.tan().

Original docstring below.

Equivalent to np.sin(x)/np.cos(x) element-wise.

Parameters:

x (array_like) – Input array.

Returns:

y – The corresponding tangent values. This is a scalar if x is a scalar.

Return type:

ndarray

References

M. Abramowitz and I. A. Stegun, Handbook of Mathematical Functions. New York, NY: Dover, 1972.