|
Packit |
67cb25 |
/* specfunc/hyperg.h
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
67cb25 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
67cb25 |
* the Free Software Foundation; either version 3 of the License, or (at
|
|
Packit |
67cb25 |
* your option) any later version.
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
67cb25 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
67cb25 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
67cb25 |
* General Public License for more details.
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
67cb25 |
* along with this program; if not, write to the Free Software
|
|
Packit |
67cb25 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Author: G. Jungman */
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Miscellaneous implementations of use
|
|
Packit |
67cb25 |
* for evaluation of hypergeometric functions.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
#ifndef _HYPERG_H_
|
|
Packit |
67cb25 |
#define _HYPERG_H_
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
#include <gsl/gsl_sf_result.h>
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Direct implementation of 1F1 series.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_1F1_series_e(const double a, const double b, const double x, gsl_sf_result * result);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Implementation of the 1F1 related to the
|
|
Packit |
67cb25 |
* incomplete gamma function: 1F1(1,b,x), b >= 1.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_1F1_1_e(double b, double x, gsl_sf_result * result);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* 1F1(1,b,x) for integer b >= 1
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_1F1_1_int_e(int b, double x, gsl_sf_result * result);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Implementation of large b asymptotic.
|
|
Packit |
67cb25 |
* [Bateman v. I, 6.13.3 (18)]
|
|
Packit |
67cb25 |
* [Luke, The Special Functions and Their Approximations v. I, p. 129, 4.8 (4)]
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* a^2 << b, |x|/|b| < 1 - delta
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_1F1_large_b_e(const double a, const double b, const double x, gsl_sf_result * result);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Implementation of large b asymptotic.
|
|
Packit |
67cb25 |
*
|
|
Packit |
67cb25 |
* Assumes a > 0 is small, x > 0, and |x|<|b|.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_U_large_b_e(const double a, const double b, const double x,
|
|
Packit |
67cb25 |
gsl_sf_result * result,
|
|
Packit |
67cb25 |
double * ln_multiplier
|
|
Packit |
67cb25 |
);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
/* Implementation of 2F0 asymptotic series.
|
|
Packit |
67cb25 |
*/
|
|
Packit |
67cb25 |
int
|
|
Packit |
67cb25 |
gsl_sf_hyperg_2F0_series_e(const double a, const double b, const double x, int n_trunc,
|
|
Packit |
67cb25 |
gsl_sf_result * result);
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
|
|
Packit |
67cb25 |
#endif /* !_HYPERG_H_ */
|