Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.