ladiv#
Functions
-
void sladiv(const f32 a, const f32 b, const f32 c, const f32 d, f32 *p, f32 *q)#
SLADIV performs complex division in real arithmetic.
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”a + i*b p + i*q = --------- c + i*d
Parameters
inaSingle precision scalar.
inbSingle precision scalar.
incSingle precision scalar.
indSingle precision scalar. The scalars a, b, c, and d in the above expression.
outpPointer to single, receives real part of result.
outqPointer to single, receives imaginary part of result.
void sladiv(
const f32 a,
const f32 b,
const f32 c,
const f32 d,
f32* p,
f32* q
);
Functions
-
void dladiv(const f64 a, const f64 b, const f64 c, const f64 d, f64 *p, f64 *q)#
DLADIV performs complex division in real arithmetic.
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”a + i*b p + i*q = --------- c + i*d
Parameters
inaDouble precision scalar.
inbDouble precision scalar.
incDouble precision scalar.
indDouble precision scalar. The scalars a, b, c, and d in the above expression.
outpPointer to f64, receives real part of result.
outqPointer to f64, receives imaginary part of result.
void dladiv(
const f64 a,
const f64 b,
const f64 c,
const f64 d,
f64* p,
f64* q
);
Functions
-
c64 cladiv(const c64 X, const c64 Y)#
CLADIV := X / Y, where X and Y are complex.
The computation of X / Y will not overflow on an intermediary step unless the results overflows.
Parameters
inXSingle complex scalar.
inYSingle complex scalar. The complex scalars X and Y.
c64 cladiv(
const c64 X,
const c64 Y
);
Functions
-
c128 zladiv(const c128 X, const c128 Y)#
ZLADIV := X / Y, where X and Y are complex.
The computation of X / Y will not overflow on an intermediary step unless the results overflows.
Parameters
inXDouble complex scalar.
inYDouble complex scalar. The complex scalars X and Y.
c128 zladiv(
const c128 X,
const c128 Y
);