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

NameTypeDescription
coordinatesreal numberZero 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))
Python Reference