Intel® Fortran Compiler 17.0 Developer Guide and Reference

HYPOT

Elemental Intrinsic Function (Generic): Returns the value of the Euclidean distance of the arguments.

result = HYPOT (x,y)

x

(Input) Must be of type real.

y

(Input) Must be of type real. It must be the same type and kind as x.

Results

The result type and kind are the same as x.

The result has a value equal to a processor-dependent approximation to the Euclidean distance, hypot graphic, without undue overflow or underflow.

Example

HYPOT (3.0, 4.0) has the approximate value 5.0.