Qu

hypot

Builtin index · Core maths

hypot(x, y)

Input: x, y · Output: no output

What it is

sqrt(x² + y²) without overflow/underflow in the intermediate squares: hypot(3, 4) is 5, hypot(1e200, 1e200) is 1.414…e200 where sqrt(x^2 + y^2) gives inf. Same broadcasting as atan2.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
hypot(x, y)
x —not documented yet
y —not documented yet
not documented yetSame broadcasting as atan2.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.