pyarrow.compute.hypot#
- pyarrow.compute.hypot(x, y, /, *, memory_pool=None)#
Compute the hypotenuse (Euclidean norm) of x and y.
The result is equivalent to sqrt(x^2 + y^2), but is computed without undue overflow or underflow at intermediate stages of the computation. If either x or y is +/-infinity, +infinity is returned, even if the other argument is NaN.
- Parameters:
- xArray-like or scalar-like
Argument to compute function.
- yArray-like or scalar-like
Argument to compute function.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.