ladiv#

Functions

void sladiv(
    const f32  a,
    const f32  b,
    const f32  c,
    const f32  d,
          f32* p,
          f32* q
);
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.

                 a + i*b
      p + i*q = ---------
                 c + i*d
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”

Parameters

in
a

Single precision scalar.

in
b

Single precision scalar.

in
c

Single precision scalar.

in
d

Single precision scalar. The scalars a, b, c, and d in the above expression.

out
p

Pointer to single, receives real part of result.

out
q

Pointer to single, receives imaginary part of result.

Functions

void dladiv(
    const f64  a,
    const f64  b,
    const f64  c,
    const f64  d,
          f64* p,
          f64* q
);
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.

                 a + i*b
      p + i*q = ---------
                 c + i*d
The algorithm is due to Michael Baudin and Robert L. Smith and can be found in the paper “A Robust Complex Division in Scilab”

Parameters

in
a

Double precision scalar.

in
b

Double precision scalar.

in
c

Double precision scalar.

in
d

Double precision scalar. The scalars a, b, c, and d in the above expression.

out
p

Pointer to f64, receives real part of result.

out
q

Pointer to f64, receives imaginary part of result.

Functions

c64 cladiv(
    const c64 X,
    const c64 Y
);
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

in
X

Single complex scalar.

in
Y

Single complex scalar. The complex scalars X and Y.

Functions

c128 zladiv(
    const c128 X,
    const c128 Y
);
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

in
X

Double complex scalar.

in
Y

Double complex scalar. The complex scalars X and Y.