This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
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