ladiv2#
Functions
-
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) * tor(a + d*(b/c)) * tdepending on the value ofr.- Further Details:
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”. https://doi.org/10.48550/arXiv.1210.4539
Parameters
inaSingle precision scalar.
inbSingle precision scalar.
incSingle precision scalar.
indSingle precision scalar.
inrSingle precision scalar, precomputed as
d/c.intSingle precision scalar, precomputed as
1/(c + d*r).- Returns:
The computed value for use in complex division.
f32 sladiv2(
const f32 a,
const f32 b,
const f32 c,
const f32 d,
const f32 r,
const f32 t
);
Functions
-
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) * tor(a + d*(b/c)) * tdepending on the value ofr.- Further Details:
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”. https://doi.org/10.48550/arXiv.1210.4539
Parameters
inaDouble precision scalar.
inbDouble precision scalar.
incDouble precision scalar.
indDouble precision scalar.
inrDouble precision scalar, precomputed as
d/c.intDouble precision scalar, precomputed as
1/(c + d*r).- Returns:
The computed value for use in complex division.
f64 dladiv2(
const f64 a,
const f64 b,
const f64 c,
const f64 d,
const f64 r,
const f64 t
);