Math Functions
math.hypot()
Compute the Euclidean norm of the supplied coordinates, avoiding unnecessary intermediate overflow.
Formal Syntax & Structure
python syntaxpython
math.hypot(*coordinates)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| coordinates | real number | Zero or more vector components. |
Return Value
float
Floating-point result; finite precision and domain restrictions apply.
Working Example
Example Snippetpython
import mathprint(math.hypot(3, 4, 12))