Python‎ > ‎math‎ > ‎

math.hypot()


Definition
The method will return the value of square roots of x*x+y*y.

Syntax
math.hypot(x,y)

Parameters
x,y=numbers

Examples
The return is:
 >>> import math
>>> math.hypot(98,33)
103.40696301506973
>>> math.hypot(2,4)
4.47213595499958
>>> 


Comments