### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Mathematical functions »

# numpy.hypot

`numpy.``hypot`(x1, x2[, out])

  Given two sides of a right triangle, return its hypotenuse.

  Parameters: | x : array_like Base of the triangle. y : array_like Height of the triangle.
  Returns: | z : ndarray Hypotenuse of the triangle: sqrt(x**2 + y**2)

  Examples

      >>> np.hypot(3,4)
      5.0

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Mathematical functions »