Skip to main content

math.Hypot

Hypotenuse: sqrt(x^2 + y^2)

math.Hypot(x: float64, y: float64) -> float64

Arguments

NameType
xfloat64
yfloat64

Example

{{ math.Hypot(3, 4) }}

Returns 5.