ladiv2#

Functions

f32 sladiv2(
    const f32 a,
    const f32 b,
    const f32 c,
    const f32 d,
    const f32 r,
    const f32 t
);
f32 sladiv2(const f32 a, const f32 b, const f32 c, const f32 d, const f32 r, const f32 t)#

SLADIV2 is a helper routine for SLADIV1, performing part of complex division using the Baudin-Smith algorithm.

This function computes (A + B*R) * T or (A + D*(B/C)) * T depending on the value of R. It is part of the robust complex division algorithm described in “A Robust Complex Division in Scilab” by Baudin and Smith.

Parameters

in
a

Double precision scalar.

in
b

Double precision scalar.

in
c

Double precision scalar.

in
d

Double precision scalar.

in
r

Double precision scalar, precomputed as D/C.

in
t

Double precision scalar, precomputed as 1/(C + D*R).

Functions

f64 dladiv2(
    const f64 a,
    const f64 b,
    const f64 c,
    const f64 d,
    const f64 r,
    const f64 t
);
f64 dladiv2(const f64 a, const f64 b, const f64 c, const f64 d, const f64 r, const f64 t)#

DLADIV2 is a helper routine for DLADIV1, performing part of complex division using the Baudin-Smith algorithm.

This function computes (A + B*R) * T or (A + D*(B/C)) * T depending on the value of R. It is part of the robust complex division algorithm described in “A Robust Complex Division in Scilab” by Baudin and Smith.

Parameters

in
a

Double precision scalar.

in
b

Double precision scalar.

in
c

Double precision scalar.

in
d

Double precision scalar.

in
r

Double precision scalar, precomputed as D/C.

in
t

Double precision scalar, precomputed as 1/(C + D*R).