Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/22/2024
Public
Document Table of Contents

?lapy3

Returns sqrt(x2+y2+z2).

Syntax

val = slapy3( x, y, z )

val = dlapy3( x, y, z )

Include Files

  • mkl.fi

Description

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

Input Parameters

The data types are given for the Fortran interface.

x, y, z

REAL for slapy3

DOUBLE PRECISION for dlapy3

Specify the input values x, y and z.

Output Parameters

val

REAL for slapy3

DOUBLE PRECISION for dlapy3.

Value returned by the function.

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

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

If val = -3D0, the third argument was NaN.