Components whose squares stay in the normal binary64 range use
Math.sqrt(dot(a, a)), so the result equals that expression exactly.
When the largest component is below 2^-511 or above 2^511, squaring
would underflow or overflow, and Math.hypot measures it instead, so any
representable length is returned. A non-finite component gives a
non-finite length.
The Euclidean length of
a.Components whose squares stay in the normal binary64 range use
Math.sqrt(dot(a, a)), so the result equals that expression exactly. When the largest component is below2^-511or above2^511, squaring would underflow or overflow, andMath.hypotmeasures it instead, so any representable length is returned. A non-finite component gives a non-finite length.