gsl_integration__qng.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /* integration/qng.h
  2. *
  3. * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
  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. /* Gauss-Kronrod-Patterson quadrature coefficients for use in
  20. quadpack routine qng. These coefficients were calculated with
  21. 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov
  22. 1981. */
  23. /* x1, abscissae common to the 10-, 21-, 43- and 87-point rule */
  24. static const double x1[5] = {
  25. 0.973906528517171720077964012084452,
  26. 0.865063366688984510732096688423493,
  27. 0.679409568299024406234327365114874,
  28. 0.433395394129247190799265943165784,
  29. 0.148874338981631210884826001129720
  30. } ;
  31. /* w10, weights of the 10-point formula */
  32. static const double w10[5] = {
  33. 0.066671344308688137593568809893332,
  34. 0.149451349150580593145776339657697,
  35. 0.219086362515982043995534934228163,
  36. 0.269266719309996355091226921569469,
  37. 0.295524224714752870173892994651338
  38. } ;
  39. /* x2, abscissae common to the 21-, 43- and 87-point rule */
  40. static const double x2[5] = {
  41. 0.995657163025808080735527280689003,
  42. 0.930157491355708226001207180059508,
  43. 0.780817726586416897063717578345042,
  44. 0.562757134668604683339000099272694,
  45. 0.294392862701460198131126603103866
  46. } ;
  47. /* w21a, weights of the 21-point formula for abscissae x1 */
  48. static const double w21a[5] = {
  49. 0.032558162307964727478818972459390,
  50. 0.075039674810919952767043140916190,
  51. 0.109387158802297641899210590325805,
  52. 0.134709217311473325928054001771707,
  53. 0.147739104901338491374841515972068
  54. } ;
  55. /* w21b, weights of the 21-point formula for abscissae x2 */
  56. static const double w21b[6] = {
  57. 0.011694638867371874278064396062192,
  58. 0.054755896574351996031381300244580,
  59. 0.093125454583697605535065465083366,
  60. 0.123491976262065851077958109831074,
  61. 0.142775938577060080797094273138717,
  62. 0.149445554002916905664936468389821
  63. } ;
  64. /* x3, abscissae common to the 43- and 87-point rule */
  65. static const double x3[11] = {
  66. 0.999333360901932081394099323919911,
  67. 0.987433402908088869795961478381209,
  68. 0.954807934814266299257919200290473,
  69. 0.900148695748328293625099494069092,
  70. 0.825198314983114150847066732588520,
  71. 0.732148388989304982612354848755461,
  72. 0.622847970537725238641159120344323,
  73. 0.499479574071056499952214885499755,
  74. 0.364901661346580768043989548502644,
  75. 0.222254919776601296498260928066212,
  76. 0.074650617461383322043914435796506
  77. } ;
  78. /* w43a, weights of the 43-point formula for abscissae x1, x3 */
  79. static const double w43a[10] = {
  80. 0.016296734289666564924281974617663,
  81. 0.037522876120869501461613795898115,
  82. 0.054694902058255442147212685465005,
  83. 0.067355414609478086075553166302174,
  84. 0.073870199632393953432140695251367,
  85. 0.005768556059769796184184327908655,
  86. 0.027371890593248842081276069289151,
  87. 0.046560826910428830743339154433824,
  88. 0.061744995201442564496240336030883,
  89. 0.071387267268693397768559114425516
  90. } ;
  91. /* w43b, weights of the 43-point formula for abscissae x3 */
  92. static const double w43b[12] = {
  93. 0.001844477640212414100389106552965,
  94. 0.010798689585891651740465406741293,
  95. 0.021895363867795428102523123075149,
  96. 0.032597463975345689443882222526137,
  97. 0.042163137935191811847627924327955,
  98. 0.050741939600184577780189020092084,
  99. 0.058379395542619248375475369330206,
  100. 0.064746404951445885544689259517511,
  101. 0.069566197912356484528633315038405,
  102. 0.072824441471833208150939535192842,
  103. 0.074507751014175118273571813842889,
  104. 0.074722147517403005594425168280423
  105. } ;
  106. /* x4, abscissae of the 87-point rule */
  107. static const double x4[22] = {
  108. 0.999902977262729234490529830591582,
  109. 0.997989895986678745427496322365960,
  110. 0.992175497860687222808523352251425,
  111. 0.981358163572712773571916941623894,
  112. 0.965057623858384619128284110607926,
  113. 0.943167613133670596816416634507426,
  114. 0.915806414685507209591826430720050,
  115. 0.883221657771316501372117548744163,
  116. 0.845710748462415666605902011504855,
  117. 0.803557658035230982788739474980964,
  118. 0.757005730685495558328942793432020,
  119. 0.706273209787321819824094274740840,
  120. 0.651589466501177922534422205016736,
  121. 0.593223374057961088875273770349144,
  122. 0.531493605970831932285268948562671,
  123. 0.466763623042022844871966781659270,
  124. 0.399424847859218804732101665817923,
  125. 0.329874877106188288265053371824597,
  126. 0.258503559202161551802280975429025,
  127. 0.185695396568346652015917141167606,
  128. 0.111842213179907468172398359241362,
  129. 0.037352123394619870814998165437704
  130. } ;
  131. /* w87a, weights of the 87-point formula for abscissae x1, x2, x3 */
  132. static const double w87a[21] = {
  133. 0.008148377384149172900002878448190,
  134. 0.018761438201562822243935059003794,
  135. 0.027347451050052286161582829741283,
  136. 0.033677707311637930046581056957588,
  137. 0.036935099820427907614589586742499,
  138. 0.002884872430211530501334156248695,
  139. 0.013685946022712701888950035273128,
  140. 0.023280413502888311123409291030404,
  141. 0.030872497611713358675466394126442,
  142. 0.035693633639418770719351355457044,
  143. 0.000915283345202241360843392549948,
  144. 0.005399280219300471367738743391053,
  145. 0.010947679601118931134327826856808,
  146. 0.016298731696787335262665703223280,
  147. 0.021081568889203835112433060188190,
  148. 0.025370969769253827243467999831710,
  149. 0.029189697756475752501446154084920,
  150. 0.032373202467202789685788194889595,
  151. 0.034783098950365142750781997949596,
  152. 0.036412220731351787562801163687577,
  153. 0.037253875503047708539592001191226
  154. } ;
  155. /* w87b, weights of the 87-point formula for abscissae x4 */
  156. static const double w87b[23] = {
  157. 0.000274145563762072350016527092881,
  158. 0.001807124155057942948341311753254,
  159. 0.004096869282759164864458070683480,
  160. 0.006758290051847378699816577897424,
  161. 0.009549957672201646536053581325377,
  162. 0.012329447652244853694626639963780,
  163. 0.015010447346388952376697286041943,
  164. 0.017548967986243191099665352925900,
  165. 0.019938037786440888202278192730714,
  166. 0.022194935961012286796332102959499,
  167. 0.024339147126000805470360647041454,
  168. 0.026374505414839207241503786552615,
  169. 0.028286910788771200659968002987960,
  170. 0.030052581128092695322521110347341,
  171. 0.031646751371439929404586051078883,
  172. 0.033050413419978503290785944862689,
  173. 0.034255099704226061787082821046821,
  174. 0.035262412660156681033782717998428,
  175. 0.036076989622888701185500318003895,
  176. 0.036698604498456094498018047441094,
  177. 0.037120549269832576114119958413599,
  178. 0.037334228751935040321235449094698,
  179. 0.037361073762679023410321241766599
  180. } ;