qwgtf.f 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. *DECK QWGTF
  2. REAL FUNCTION QWGTF (X, OMEGA, P2, P3, P4, INTEGR)
  3. C***BEGIN PROLOGUE QWGTF
  4. C***SUBSIDIARY
  5. C***PURPOSE This function subprogram is used together with the
  6. C routine QAWF and defines the WEIGHT function.
  7. C***LIBRARY SLATEC
  8. C***TYPE SINGLE PRECISION (QWGTF-S, DQWGTF-D)
  9. C***KEYWORDS COS OR SIN IN WEIGHT FUNCTION
  10. C***AUTHOR Piessens, Robert
  11. C Applied Mathematics and Programming Division
  12. C K. U. Leuven
  13. C de Doncker, Elise
  14. C Applied Mathematics and Programming Division
  15. C K. U. Leuven
  16. C***SEE ALSO QK15W
  17. C***ROUTINES CALLED (NONE)
  18. C***REVISION HISTORY (YYMMDD)
  19. C 810101 DATE WRITTEN
  20. C 830518 REVISION DATE from Version 3.2
  21. C 891214 Prologue converted to Version 4.0 format. (BAB)
  22. C 900328 Added TYPE section. (WRB)
  23. C***END PROLOGUE QWGTF
  24. C
  25. REAL OMEGA,OMX,P2,P3,P4,X
  26. INTEGER INTEGR
  27. C***FIRST EXECUTABLE STATEMENT QWGTF
  28. OMX = OMEGA*X
  29. GO TO(10,20),INTEGR
  30. 10 QWGTF = COS(OMX)
  31. GO TO 30
  32. 20 QWGTF = SIN(OMX)
  33. 30 RETURN
  34. END