1 /* specfunc/gsl_sf_expint.h
3 * Copyright (C) 2007 Brian Gough
4 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Gerard Jungman
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at
9 * your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /* Author: G. Jungman */
23 #ifndef __GSL_SF_EXPINT_H__
24 #define __GSL_SF_EXPINT_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 /* E_1(x) := Re[ Integrate[ Exp[-xt]/t, {t,1,Infinity}] ]
44 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
46 int gsl_sf_expint_E1_e(const double x, gsl_sf_result * result);
47 double gsl_sf_expint_E1(const double x);
50 /* E_2(x) := Re[ Integrate[ Exp[-xt]/t^2, {t,1,Infinity}] ]
53 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
55 int gsl_sf_expint_E2_e(const double x, gsl_sf_result * result);
56 double gsl_sf_expint_E2(const double x);
59 /* E_n(x) := Re[ Integrate[ Exp[-xt]/t^n, {t,1,Infinity}] ]
62 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
64 int gsl_sf_expint_En_e(const int n, const double x, gsl_sf_result * result);
65 double gsl_sf_expint_En(const int n, const double x);
68 /* E_1_scaled(x) := exp(x) E_1(x)
71 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
73 int gsl_sf_expint_E1_scaled_e(const double x, gsl_sf_result * result);
74 double gsl_sf_expint_E1_scaled(const double x);
77 /* E_2_scaled(x) := exp(x) E_2(x)
80 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
82 int gsl_sf_expint_E2_scaled_e(const double x, gsl_sf_result * result);
83 double gsl_sf_expint_E2_scaled(const double x);
85 /* E_n_scaled(x) := exp(x) E_n(x)
88 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
90 int gsl_sf_expint_En_scaled_e(const int n, const double x, gsl_sf_result * result);
91 double gsl_sf_expint_En_scaled(const int n, const double x);
94 /* Ei(x) := - PV Integrate[ Exp[-t]/t, {t,-x,Infinity}]
95 * := PV Integrate[ Exp[t]/t, {t,-Infinity,x}]
98 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
100 int gsl_sf_expint_Ei_e(const double x, gsl_sf_result * result);
101 double gsl_sf_expint_Ei(const double x);
104 /* Ei_scaled(x) := exp(-x) Ei(x)
107 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
109 int gsl_sf_expint_Ei_scaled_e(const double x, gsl_sf_result * result);
110 double gsl_sf_expint_Ei_scaled(const double x);
113 /* Shi(x) := Integrate[ Sinh[t]/t, {t,0,x}]
115 * exceptions: GSL_EOVRFLW, GSL_EUNDRFLW
117 int gsl_sf_Shi_e(const double x, gsl_sf_result * result);
118 double gsl_sf_Shi(const double x);
121 /* Chi(x) := Re[ M_EULER + log(x) + Integrate[(Cosh[t]-1)/t, {t,0,x}] ]
124 * exceptions: GSL_EDOM, GSL_EOVRFLW, GSL_EUNDRFLW
126 int gsl_sf_Chi_e(const double x, gsl_sf_result * result);
127 double gsl_sf_Chi(const double x);
130 /* Ei_3(x) := Integral[ Exp[-t^3], {t,0,x}]
133 * exceptions: GSL_EDOM
135 int gsl_sf_expint_3_e(const double x, gsl_sf_result * result);
136 double gsl_sf_expint_3(double x);
139 /* Si(x) := Integrate[ Sin[t]/t, {t,0,x}]
143 int gsl_sf_Si_e(const double x, gsl_sf_result * result);
144 double gsl_sf_Si(const double x);
147 /* Ci(x) := -Integrate[ Cos[t]/t, {t,x,Infinity}]
150 * exceptions: GSL_EDOM
152 int gsl_sf_Ci_e(const double x, gsl_sf_result * result);
153 double gsl_sf_Ci(const double x);
156 /* AtanInt(x) := Integral[ Arctan[t]/t, {t,0,x}]
161 int gsl_sf_atanint_e(const double x, gsl_sf_result * result);
162 double gsl_sf_atanint(const double x);
167 #endif /* __GSL_SF_EXPINT_H__ */