scipp.tan#

scipp.tan(x, *, out=None)#

Element-wise tangent.

The input must have a plane-angle unit, i.e. rad, deg.

Parameters:
Returns:

Same type as input – The tangent values of the input.

Examples

Compute tangent of angles:

>>> import scipp as sc
>>> angle = sc.array(dims=['x'], values=[0.0, 30.0, 45.0], unit='deg')
>>> sc.tan(angle)
<scipp.Variable> (x: 3)    float64  [dimensionless]  [0, 0.57735, 1]

The input must have angle units (rad or deg). The output is dimensionless.