TR-mbed 1.0
Loading...
Searching...
No Matches
Functions/Subroutines
sladiv.f File Reference

Functions/Subroutines

subroutine sladiv (a, b, c, d, p, q)
 SLADIV
 

Function/Subroutine Documentation

◆ sladiv()

subroutine sladiv ( real  a,
real  b,
real  c,
real  d,
real  p,
real  q 
)

SLADIV

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 Robert L. Smith and can be found
 in D. Knuth, The art of Computer Programming, Vol.2, p.195
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
November 2011