Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 11/07/2023
Public

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

Document Table of Contents

?lapy2

Returns sqrt(x2+y2).

Syntax

val = slapy2( x, y )

val = dlapy2( x, y )

Include Files

  • mkl.fi

Description

The function ?lapy2 returns sqrt(x2+y2), avoiding unnecessary overflow or harmful underflow.

Input Parameters

The data types are given for the Fortran interface.

x, y

REAL for slapy2

DOUBLE PRECISION for dlapy2

Specify the input values x and y.

Output Parameters

val

REAL for slapy2

DOUBLE PRECISION for dlapy2.

Value returned by the function.

If val=-1D0, the first argument was NaN.

If val=-2D0, the second argument was NaN.