# tensorplay.functional.hypot Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.hypot.html ```python tensorplay.functional.hypot(input, other, *, out=None) → Tensor ``` Given the legs of a right triangle, return its hypotenuse. $$\text{out}_{i} = \sqrt{\text{input}_{i}^{2} + \text{other}_{i}^{2}}$$ The shapes of input and other must be [broadcastable](/docs/notes/broadcasting.html#broadcasting-semantics). Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the first input tensor - other ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the second input tensor Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.hypot(tensorplay.tensor([4.0]), tensorplay.tensor([3.0, 4.0, 5.0])) tensor([5.0000, 5.6569, 6.4031]) ```