Monday, March 5, 2018

Number hypot() Method


Number hypot() Method in Python 3:


The method hypot() return the Euclidean norm, sqrt(x*x + y*y). This is length of vector from origin to point (x,y)

Syntax
import math
hypot()

Note: This function is not accessible directly, so we need to import math module and then
we need to call this function using math static object.

Parameters
· x - This must be a numeric value.
· y - This must be a numeric value.
Return Value
This method returns Euclidean norm, sqrt(x*x + y*y).

 Example

and the output is: