1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
---
:name: sladiv
:md5sum: ec621296a17da602467a623f15f8653a
:category: :subroutine
:arguments:
- a:
:type: real
:intent: input
- b:
:type: real
:intent: input
- c:
:type: real
:intent: input
- d:
:type: real
:intent: input
- p:
:type: real
:intent: output
- q:
:type: real
:intent: output
:substitutions: {}
:fortran_help: " SUBROUTINE SLADIV( A, B, C, D, P, Q )\n\n\
* Purpose\n\
* =======\n\
*\n\
* SLADIV performs complex division in real arithmetic\n\
*\n\
* a + i*b\n\
* p + i*q = ---------\n\
* c + i*d\n\
*\n\
* The algorithm is due to Robert L. Smith and can be found\n\
* in D. Knuth, The art of Computer Programming, Vol.2, p.195\n\
*\n\n\
* Arguments\n\
* =========\n\
*\n\
* A (input) REAL\n\
* B (input) REAL\n\
* C (input) REAL\n\
* D (input) REAL\n\
* The scalars a, b, c, and d in the above expression.\n\
*\n\
* P (output) REAL\n\
* Q (output) REAL\n\
* The scalars p and q in the above expression.\n\
*\n\n\
* =====================================================================\n\
*\n\
* .. Local Scalars ..\n REAL E, F\n\
* ..\n\
* .. Intrinsic Functions ..\n INTRINSIC ABS\n\
* ..\n"
|