gsl_specfunc__legendre.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* specfunc/legendre.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. /* Declare private but non-local support functions
  21. * used in various Legendre function evaluations.
  22. */
  23. #include "gsl_sf_result.h"
  24. /* Large negative mu asymptotic
  25. * P^{-mu}_{-1/2 + I tau}, mu -> Inf
  26. * |x| < 1
  27. */
  28. int
  29. gsl_sf_conicalP_xlt1_large_neg_mu_e(double mu, double tau, double x,
  30. gsl_sf_result * result, double * ln_multiplier);
  31. /* Large tau uniform asymptotics
  32. * P^{-mu}_{-1/2 + I tau}, tau -> Inf
  33. * 1 < x
  34. */
  35. int
  36. gsl_sf_conicalP_xgt1_neg_mu_largetau_e(const double mu, const double tau,
  37. const double x, double acosh_x,
  38. gsl_sf_result * result, double * ln_multiplier);
  39. /* Large tau uniform asymptotics
  40. * P^{-mu}_{-1/2 + I tau}, tau -> Inf
  41. * -1 < x < 1
  42. */
  43. int
  44. gsl_sf_conicalP_xlt1_neg_mu_largetau_e(const double mu, const double tau,
  45. const double x, const double acos_x,
  46. gsl_sf_result * result, double * ln_multiplier);
  47. /* P^{mu}_{-1/2 + I tau}
  48. * x->Inf
  49. *
  50. * * This is effective to precision EPS for
  51. *
  52. * (mu^2 + tau^2)/((1 + tau^2)^(1/2) x^2) < EPS^{1/3}
  53. *
  54. * since it goes only to a fixed order, based on the
  55. * representation in terms of hypegeometric functions
  56. * of argument 1/x^2.
  57. * [Zhurina+Karmazina, (3.8)]
  58. */
  59. int
  60. gsl_sf_conicalP_large_x_e(const double mu, const double tau, const double x,
  61. gsl_sf_result * result, double * ln_multiplier);