gsl_sf_coupling.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* specfunc/gsl_sf_coupling.h
  2. *
  3. * Copyright (C) 1996,1997,1998,1999,2000,2001,2002 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. #ifndef __GSL_SF_COUPLING_H__
  21. #define __GSL_SF_COUPLING_H__
  22. #include "gsl_sf_result.h"
  23. #undef __BEGIN_DECLS
  24. #undef __END_DECLS
  25. #ifdef __cplusplus
  26. # define __BEGIN_DECLS extern "C" {
  27. # define __END_DECLS }
  28. #else
  29. # define __BEGIN_DECLS /* empty */
  30. # define __END_DECLS /* empty */
  31. #endif
  32. __BEGIN_DECLS
  33. /* 3j Symbols: / ja jb jc \
  34. * \ ma mb mc /
  35. *
  36. * exceptions: GSL_EDOM, GSL_EOVRFLW
  37. */
  38. int gsl_sf_coupling_3j_e(int two_ja, int two_jb, int two_jc,
  39. int two_ma, int two_mb, int two_mc,
  40. gsl_sf_result * result
  41. );
  42. double gsl_sf_coupling_3j(int two_ja, int two_jb, int two_jc,
  43. int two_ma, int two_mb, int two_mc
  44. );
  45. /* 6j Symbols: / ja jb jc \
  46. * \ jd je jf /
  47. *
  48. * exceptions: GSL_EDOM, GSL_EOVRFLW
  49. */
  50. int gsl_sf_coupling_6j_e(int two_ja, int two_jb, int two_jc,
  51. int two_jd, int two_je, int two_jf,
  52. gsl_sf_result * result
  53. );
  54. double gsl_sf_coupling_6j(int two_ja, int two_jb, int two_jc,
  55. int two_jd, int two_je, int two_jf
  56. );
  57. /* Racah W coefficients:
  58. *
  59. * W(a b c d; e f) = (-1)^{a+b+c+d} / a b e \
  60. * \ d c f /
  61. *
  62. * exceptions: GSL_EDOM, GSL_EOVRFLW
  63. */
  64. int gsl_sf_coupling_RacahW_e(int two_ja, int two_jb, int two_jc,
  65. int two_jd, int two_je, int two_jf,
  66. gsl_sf_result * result
  67. );
  68. double gsl_sf_coupling_RacahW(int two_ja, int two_jb, int two_jc,
  69. int two_jd, int two_je, int two_jf
  70. );
  71. /* 9j Symbols: / ja jb jc \
  72. * | jd je jf |
  73. * \ jg jh ji /
  74. *
  75. * exceptions: GSL_EDOM, GSL_EOVRFLW
  76. */
  77. int gsl_sf_coupling_9j_e(int two_ja, int two_jb, int two_jc,
  78. int two_jd, int two_je, int two_jf,
  79. int two_jg, int two_jh, int two_ji,
  80. gsl_sf_result * result
  81. );
  82. double gsl_sf_coupling_9j(int two_ja, int two_jb, int two_jc,
  83. int two_jd, int two_je, int two_jf,
  84. int two_jg, int two_jh, int two_ji
  85. );
  86. /* INCORRECT version of 6j Symbols:
  87. * This function actually calculates
  88. * / ja jb je \
  89. * \ jd jc jf /
  90. * It represents the original implementation,
  91. * which had the above permutation of the
  92. * arguments. This was wrong and confusing,
  93. * and I had to fix it. Sorry for the trouble.
  94. * [GJ] Tue Nov 26 12:53:39 MST 2002
  95. *
  96. * exceptions: GSL_EDOM, GSL_EOVRFLW
  97. */
  98. #ifndef GSL_DISABLE_DEPRECATED
  99. int gsl_sf_coupling_6j_INCORRECT_e(int two_ja, int two_jb, int two_jc,
  100. int two_jd, int two_je, int two_jf,
  101. gsl_sf_result * result
  102. );
  103. double gsl_sf_coupling_6j_INCORRECT(int two_ja, int two_jb, int two_jc,
  104. int two_jd, int two_je, int two_jf
  105. );
  106. #endif /* !GSL_DISABLE_DEPRECATED */
  107. __END_DECLS
  108. #endif /* __GSL_SF_COUPLING_H__ */