dqwgtf.f 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. *DECK DQWGTF
  2. DOUBLE PRECISION FUNCTION DQWGTF (X, OMEGA, P2, P3, P4, INTEGR)
  3. C***BEGIN PROLOGUE DQWGTF
  4. C***SUBSIDIARY
  5. C***PURPOSE This function subprogram is used together with the
  6. C routine DQAWF and defines the WEIGHT function.
  7. C***LIBRARY SLATEC
  8. C***TYPE DOUBLE 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 DQK15W
  17. C***ROUTINES CALLED (NONE)
  18. C***REVISION HISTORY (YYMMDD)
  19. C 810101 DATE WRITTEN
  20. C 890531 Changed all specific intrinsics to generic. (WRB)
  21. C 890531 REVISION DATE from Version 3.2
  22. C 891214 Prologue converted to Version 4.0 format. (BAB)
  23. C 900328 Added TYPE section. (WRB)
  24. C***END PROLOGUE DQWGTF
  25. C
  26. DOUBLE PRECISION OMEGA,OMX,P2,P3,P4,X
  27. INTEGER INTEGR
  28. C***FIRST EXECUTABLE STATEMENT DQWGTF
  29. OMX = OMEGA*X
  30. GO TO(10,20),INTEGR
  31. 10 DQWGTF = COS(OMX)
  32. GO TO 30
  33. 20 DQWGTF = SIN(OMX)
  34. 30 RETURN
  35. END