ei.f 966 B

12345678910111213141516171819202122232425262728293031323334
  1. *DECK EI
  2. FUNCTION EI (X)
  3. C***BEGIN PROLOGUE EI
  4. C***PURPOSE Compute the exponential integral Ei(X).
  5. C***LIBRARY SLATEC (FNLIB)
  6. C***CATEGORY C5
  7. C***TYPE SINGLE PRECISION (EI-S, DEI-D)
  8. C***KEYWORDS EI FUNCTION, EXPONENTIAL INTEGRAL, FNLIB,
  9. C SPECIAL FUNCTIONS
  10. C***AUTHOR Fullerton, W., (LANL)
  11. C***DESCRIPTION
  12. C
  13. C EI calculates the single precision exponential integral, Ei(X), for
  14. C positive single precision argument X and the Cauchy principal value
  15. C for negative X. If principal values are used everywhere, then, for
  16. C all X,
  17. C
  18. C Ei(X) = -E1(-X)
  19. C or
  20. C E1(X) = -Ei(-X).
  21. C
  22. C***REFERENCES (NONE)
  23. C***ROUTINES CALLED E1
  24. C***REVISION HISTORY (YYMMDD)
  25. C 770401 DATE WRITTEN
  26. C 891115 Modified prologue description. (WRB)
  27. C 891115 REVISION DATE from Version 3.2
  28. C 891214 Prologue converted to Version 4.0 format. (BAB)
  29. C***END PROLOGUE EI
  30. C***FIRST EXECUTABLE STATEMENT EI
  31. EI = -E1(-X)
  32. C
  33. RETURN
  34. END