# tensorplay.functional.tan Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.tan.html ```python tensorplay.functional.tan(input, *, out=None) → Tensor ``` Returns a new tensor with the tangent of the elements of input. $$\text{out}_{i} = \tan(\text{input}_{i})$$ Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.randn(4) >>> a tensor([-1.2027, -1.7687, 0.4412, -1.3856]) >>> tensorplay.tan(a) tensor([-2.5930, 4.9859, 0.4722, -5.3366]) ```