gsl_specfunc__hyperg.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* specfunc/hyperg.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. /* Miscellaneous implementations of use
  21. * for evaluation of hypergeometric functions.
  22. */
  23. #ifndef _HYPERG_H_
  24. #define _HYPERG_H_
  25. #include "gsl_sf_result.h"
  26. /* Direct implementation of 1F1 series.
  27. */
  28. int
  29. gsl_sf_hyperg_1F1_series_e(const double a, const double b, const double x, gsl_sf_result * result);
  30. /* Implementation of the 1F1 related to the
  31. * incomplete gamma function: 1F1(1,b,x), b >= 1.
  32. */
  33. int
  34. gsl_sf_hyperg_1F1_1_e(double b, double x, gsl_sf_result * result);
  35. /* 1F1(1,b,x) for integer b >= 1
  36. */
  37. int
  38. gsl_sf_hyperg_1F1_1_int_e(int b, double x, gsl_sf_result * result);
  39. /* Implementation of large b asymptotic.
  40. * [Bateman v. I, 6.13.3 (18)]
  41. * [Luke, The Special Functions and Their Approximations v. I, p. 129, 4.8 (4)]
  42. *
  43. * a^2 << b, |x|/|b| < 1 - delta
  44. */
  45. int
  46. gsl_sf_hyperg_1F1_large_b_e(const double a, const double b, const double x, gsl_sf_result * result);
  47. /* Implementation of large b asymptotic.
  48. *
  49. * Assumes a > 0 is small, x > 0, and |x|<|b|.
  50. */
  51. int
  52. gsl_sf_hyperg_U_large_b_e(const double a, const double b, const double x,
  53. gsl_sf_result * result,
  54. double * ln_multiplier
  55. );
  56. /* Implementation of 2F0 asymptotic series.
  57. */
  58. int
  59. gsl_sf_hyperg_2F0_series_e(const double a, const double b, const double x, int n_trunc,
  60. gsl_sf_result * result);
  61. #endif /* !_HYPERG_H_ */