LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
sladiv.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine sladiv (A, B, C, D, P, Q)
 SLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.
subroutine sladiv1 (A, B, C, D, P, Q)
REAL function sladiv2 (A, B, C, D, R, T)

Function/Subroutine Documentation

subroutine sladiv ( real  A,
real  B,
real  C,
real  D,
real  P,
real  Q 
)

SLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.

Download SLADIV + dependencies [TGZ] [ZIP] [TXT]
Purpose:
 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
          A is REAL
[in]B
          B is REAL
[in]C
          C is REAL
[in]D
          D is REAL
          The scalars a, b, c, and d in the above expression.
[out]P
          P is REAL
[out]Q
          Q is REAL
          The scalars p and q in the above expression.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
January 2013

Definition at line 92 of file sladiv.f.

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine sladiv1 ( real  A,
real  B,
real  C,
real  D,
real  P,
real  Q 
)

Definition at line 178 of file sladiv.f.

Here is the call graph for this function:

Here is the caller graph for this function:

REAL function sladiv2 ( real  A,
real  B,
real  C,
real  D,
real  R,
real  T 
)

Definition at line 216 of file sladiv.f.

Here is the call graph for this function:

Here is the caller graph for this function: