# ?lapy2

Returns `sqrt(x2+y2)`.

## Syntax

val = slapy2( x, y )

val = dlapy2( x, y )

## Description

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

## Input Parameters

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.

Parent topic: Auxiliary Routines