lapy3#

Functions

f32 slapy3(
    const f32 x,
    const f32 y,
    const f32 z
);
f32 slapy3(const f32 x, const f32 y, const f32 z)#

SLAPY3 returns sqrt(x**2 + y**2 + z**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.

in
z

Single precision scalar. Specifies the value z.

Returns:

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

Functions

f64 dlapy3(
    const f64 x,
    const f64 y,
    const f64 z
);
f64 dlapy3(const f64 x, const f64 y, const f64 z)#

DLAPY3 returns sqrt(x**2 + y**2 + z**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.

in
z

Double precision scalar. Specifies the value z.

Returns:

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