lapy2#

Functions

f32 slapy2(
    const f32 x,
    const f32 y
);
f32 slapy2(const f32 x, const f32 y)#

SLAPY2 returns sqrt(x**2 + y**2), taking care not to cause unnecessary overflow and unnecessary underflow.

Parameters

in
x

Single precision scalar. Specifies the value x.

in
y

Single precision scalar. Specifies the value y.

Returns:

sqrt(x**2 + y**2) computed safely.

Functions

f64 dlapy2(
    const f64 x,
    const f64 y
);
f64 dlapy2(const f64 x, const f64 y)#

DLAPY2 returns sqrt(x**2 + y**2), taking care not to cause unnecessary overflow and unnecessary underflow.

Parameters

in
x

Double precision scalar. Specifies the value x.

in
y

Double precision scalar. Specifies the value y.

Returns:

sqrt(x**2 + y**2) computed safely.