gsl_sf_coulomb.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /* specfunc/gsl_sf_coulomb.h
  2. *
  3. * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. */
  19. /* Author: G. Jungman */
  20. #ifndef __GSL_SF_COULOMB_H__
  21. #define __GSL_SF_COULOMB_H__
  22. #include "gsl_mode.h"
  23. #include "gsl_sf_result.h"
  24. #undef __BEGIN_DECLS
  25. #undef __END_DECLS
  26. #ifdef __cplusplus
  27. # define __BEGIN_DECLS extern "C" {
  28. # define __END_DECLS }
  29. #else
  30. # define __BEGIN_DECLS /* empty */
  31. # define __END_DECLS /* empty */
  32. #endif
  33. __BEGIN_DECLS
  34. /* Normalized hydrogenic bound states, radial dependence. */
  35. /* R_1 := 2Z sqrt(Z) exp(-Z r)
  36. */
  37. int gsl_sf_hydrogenicR_1_e(const double Z, const double r, gsl_sf_result * result);
  38. double gsl_sf_hydrogenicR_1(const double Z, const double r);
  39. /* R_n := norm exp(-Z r/n) (2Z/n)^l Laguerre[n-l-1, 2l+1, 2Z/n r]
  40. *
  41. * normalization such that psi(n,l,r) = R_n Y_{lm}
  42. */
  43. int gsl_sf_hydrogenicR_e(const int n, const int l, const double Z, const double r, gsl_sf_result * result);
  44. double gsl_sf_hydrogenicR(const int n, const int l, const double Z, const double r);
  45. /* Coulomb wave functions F_{lam_F}(eta,x), G_{lam_G}(eta,x)
  46. * and their derivatives; lam_G := lam_F - k_lam_G
  47. *
  48. * lam_F, lam_G > -0.5
  49. * x > 0.0
  50. *
  51. * Conventions of Abramowitz+Stegun.
  52. *
  53. * Because there can be a large dynamic range of values,
  54. * overflows are handled gracefully. If an overflow occurs,
  55. * GSL_EOVRFLW is signalled and exponent(s) are returned
  56. * through exp_F, exp_G. These are such that
  57. *
  58. * F_L(eta,x) = fc[k_L] * exp(exp_F)
  59. * G_L(eta,x) = gc[k_L] * exp(exp_G)
  60. * F_L'(eta,x) = fcp[k_L] * exp(exp_F)
  61. * G_L'(eta,x) = gcp[k_L] * exp(exp_G)
  62. */
  63. int
  64. gsl_sf_coulomb_wave_FG_e(const double eta, const double x,
  65. const double lam_F,
  66. const int k_lam_G,
  67. gsl_sf_result * F, gsl_sf_result * Fp,
  68. gsl_sf_result * G, gsl_sf_result * Gp,
  69. double * exp_F, double * exp_G);
  70. /* F_L(eta,x) as array */
  71. int gsl_sf_coulomb_wave_F_array(
  72. double lam_min, int kmax,
  73. double eta, double x,
  74. double * fc_array,
  75. double * F_exponent
  76. );
  77. /* F_L(eta,x), G_L(eta,x) as arrays */
  78. int gsl_sf_coulomb_wave_FG_array(double lam_min, int kmax,
  79. double eta, double x,
  80. double * fc_array, double * gc_array,
  81. double * F_exponent,
  82. double * G_exponent
  83. );
  84. /* F_L(eta,x), G_L(eta,x), F'_L(eta,x), G'_L(eta,x) as arrays */
  85. int gsl_sf_coulomb_wave_FGp_array(double lam_min, int kmax,
  86. double eta, double x,
  87. double * fc_array, double * fcp_array,
  88. double * gc_array, double * gcp_array,
  89. double * F_exponent,
  90. double * G_exponent
  91. );
  92. /* Coulomb wave function divided by the argument,
  93. * F(eta, x)/x. This is the function which reduces to
  94. * spherical Bessel functions in the limit eta->0.
  95. */
  96. int gsl_sf_coulomb_wave_sphF_array(double lam_min, int kmax,
  97. double eta, double x,
  98. double * fc_array,
  99. double * F_exponent
  100. );
  101. /* Coulomb wave function normalization constant.
  102. * [Abramowitz+Stegun 14.1.8, 14.1.9]
  103. */
  104. int gsl_sf_coulomb_CL_e(double L, double eta, gsl_sf_result * result);
  105. int gsl_sf_coulomb_CL_array(double Lmin, int kmax, double eta, double * cl);
  106. __END_DECLS
  107. #endif /* __GSL_SF_COULOMB_H__ */