Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
A newer version of this document is available. Customers should click here to go to the newest version.
?lapy3
Returns sqrt(x^{2}+y^{2}+z^{2}) .
Syntax
valslapy3 ( x , y , z )
valdlapy3 ( x , y , z )
Include Files
mkl.fi
Description
slapy3 dlapy3
The function ?lapy3 returns sqrt ( x:code:`2` + y:code:`2` + z:code:`2` ), 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.
Return Values
This function returns a value val .
If val = -1D0 , the first argument was NaN.
If val = -2D0 , the second argument was NaN.
If val = -3D0 , the third argument was NaN.