1 /* specfunc/gsl_sf_coulomb.h
3 * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
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.
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.
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.
20 /* Author: G. Jungman */
22 #ifndef __GSL_SF_COULOMB_H__
23 #define __GSL_SF_COULOMB_H__
25 #include <gsl/gsl_mode.h>
26 #include <gsl/gsl_sf_result.h>
31 # define __BEGIN_DECLS extern "C" {
32 # define __END_DECLS }
34 # define __BEGIN_DECLS /* empty */
35 # define __END_DECLS /* empty */
41 /* Normalized hydrogenic bound states, radial dependence. */
43 /* R_1 := 2Z sqrt(Z) exp(-Z r)
45 int gsl_sf_hydrogenicR_1_e(const double Z, const double r, gsl_sf_result * result);
46 double gsl_sf_hydrogenicR_1(const double Z, const double r);
48 /* R_n := norm exp(-Z r/n) (2Z/n)^l Laguerre[n-l-1, 2l+1, 2Z/n r]
50 * normalization such that psi(n,l,r) = R_n Y_{lm}
52 int gsl_sf_hydrogenicR_e(const int n, const int l, const double Z, const double r, gsl_sf_result * result);
53 double gsl_sf_hydrogenicR(const int n, const int l, const double Z, const double r);
56 /* Coulomb wave functions F_{lam_F}(eta,x), G_{lam_G}(eta,x)
57 * and their derivatives; lam_G := lam_F - k_lam_G
62 * Conventions of Abramowitz+Stegun.
64 * Because there can be a large dynamic range of values,
65 * overflows are handled gracefully. If an overflow occurs,
66 * GSL_EOVRFLW is signalled and exponent(s) are returned
67 * through exp_F, exp_G. These are such that
69 * F_L(eta,x) = fc[k_L] * exp(exp_F)
70 * G_L(eta,x) = gc[k_L] * exp(exp_G)
71 * F_L'(eta,x) = fcp[k_L] * exp(exp_F)
72 * G_L'(eta,x) = gcp[k_L] * exp(exp_G)
75 gsl_sf_coulomb_wave_FG_e(const double eta, const double x,
78 gsl_sf_result * F, gsl_sf_result * Fp,
79 gsl_sf_result * G, gsl_sf_result * Gp,
80 double * exp_F, double * exp_G);
83 /* F_L(eta,x) as array */
84 int gsl_sf_coulomb_wave_F_array(
85 double lam_min, int kmax,
91 /* F_L(eta,x), G_L(eta,x) as arrays */
92 int gsl_sf_coulomb_wave_FG_array(double lam_min, int kmax,
94 double * fc_array, double * gc_array,
99 /* F_L(eta,x), G_L(eta,x), F'_L(eta,x), G'_L(eta,x) as arrays */
100 int gsl_sf_coulomb_wave_FGp_array(double lam_min, int kmax,
101 double eta, double x,
102 double * fc_array, double * fcp_array,
103 double * gc_array, double * gcp_array,
108 /* Coulomb wave function divided by the argument,
109 * F(eta, x)/x. This is the function which reduces to
110 * spherical Bessel functions in the limit eta->0.
112 int gsl_sf_coulomb_wave_sphF_array(double lam_min, int kmax,
113 double eta, double x,
119 /* Coulomb wave function normalization constant.
120 * [Abramowitz+Stegun 14.1.8, 14.1.9]
122 int gsl_sf_coulomb_CL_e(double L, double eta, gsl_sf_result * result);
123 int gsl_sf_coulomb_CL_array(double Lmin, int kmax, double eta, double * cl);
128 #endif /* __GSL_SF_COULOMB_H__ */