1 DOUBLE PRECISION FUNCTION DLAPY2( X, Y )
3 ! -- LAPACK auxiliary routine (version 3.1) --
4 ! Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
7 ! .. Scalar Arguments ..
14 ! DLAPY2 returns sqrt(x**2+y**2), taking care not to cause unnecessary
20 ! X (input) DOUBLE PRECISION
21 ! Y (input) DOUBLE PRECISION
22 ! X and Y specify the values x and y.
24 ! =====================================================================
28 PARAMETER ( ZERO = 0.0D0 )
30 PARAMETER ( ONE = 1.0D0 )
33 DOUBLE PRECISION W, XABS, YABS, Z
35 ! .. Intrinsic Functions ..
36 INTRINSIC ABS, MAX, MIN, SQRT
38 ! .. Executable Statements ..
47 DLAPY2 = W*SQRT( ONE+( Z / W )**2 )