# tensorplay.functional.reciprocal Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.reciprocal.html ```python tensorplay.functional.reciprocal(input, *, out=None) → Tensor ``` Returns a new tensor with the reciprocal of the elements of input $$\text{out}_{i} = \frac{1}{\text{input}_{i}}$$ > **Note** > > Unlike NumPy’s reciprocal, tensorplay.reciprocal supports integral inputs. Integral inputs to reciprocal are automatically promoted to the default scalar type. 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([-0.4595, -2.1219, -1.4314, 0.7298]) >>> tensorplay.reciprocal(a) tensor([-2.1763, -0.4713, -0.6986, 1.3702]) ```