source: sasmodels/sasmodels/models/lib/gauss150.c @ 830cf6b

ticket-1257-vesicle-productticket_1156ticket_822_more_unit_tests
Last change on this file since 830cf6b was 99b84ec, checked in by Paul Kienzle <pkienzle@…>, 6 years ago

remove templated copyright notice from gaussian distributions

  • Property mode set to 100644
File size: 7.4 KB
Line 
1// Created by Andrew Jackson on 4/23/07
2
3 #ifdef GAUSS_N
4 # undef GAUSS_N
5 # undef GAUSS_Z
6 # undef GAUSS_W
7 #endif
8 #define GAUSS_N 150
9 #define GAUSS_Z Gauss150Z
10 #define GAUSS_W Gauss150Wt
11
12
13// Note: using array size 152 rather than 150 so that it is a multiple of 4.
14// Some OpenCL devices prefer that vectors start and end on nice boundaries.
15constant double Gauss150Z[152]={
16        -0.9998723404457334,
17        -0.9993274305065947,
18        -0.9983473449340834,
19        -0.9969322929775997,
20        -0.9950828645255290,
21        -0.9927998590434373,
22        -0.9900842691660192,
23        -0.9869372772712794,
24        -0.9833602541697529,
25        -0.9793547582425894,
26        -0.9749225346595943,
27        -0.9700655145738374,
28        -0.9647858142586956,
29        -0.9590857341746905,
30        -0.9529677579610971,
31        -0.9464345513503147,
32        -0.9394889610042837,
33        -0.9321340132728527,
34        -0.9243729128743136,
35        -0.9162090414984952,
36        -0.9076459563329236,
37        -0.8986873885126239,
38        -0.8893372414942055,
39        -0.8795995893549102,
40        -0.8694786750173527,
41        -0.8589789084007133,
42        -0.8481048644991847,
43        -0.8368612813885015,
44        -0.8252530581614230,
45        -0.8132852527930605,
46        -0.8009630799369827,
47        -0.7882919086530552,
48        -0.7752772600680049,
49        -0.7619248049697269,
50        -0.7482403613363824,
51        -0.7342298918013638,
52        -0.7198995010552305,
53        -0.7052554331857488,
54        -0.6903040689571928,
55        -0.6750519230300931,
56        -0.6595056411226444,
57        -0.6436719971150083,
58        -0.6275578900977726,
59        -0.6111703413658551,
60        -0.5945164913591590,
61        -0.5776035965513142,
62        -0.5604390262878617,
63        -0.5430302595752546,
64        -0.5253848818220803,
65        -0.5075105815339176,
66        -0.4894151469632753,
67        -0.4711064627160663,
68        -0.4525925063160997,
69        -0.4338813447290861,
70        -0.4149811308476706,
71        -0.3959000999390257,
72        -0.3766465660565522,
73        -0.3572289184172501,
74        -0.3376556177463400,
75        -0.3179351925907259,
76        -0.2980762356029071,
77        -0.2780873997969574,
78        -0.2579773947782034,
79        -0.2377549829482451,
80        -0.2174289756869712,
81        -0.1970082295132342,
82        -0.1765016422258567,
83        -0.1559181490266516,
84        -0.1352667186271445,
85        -0.1145563493406956,
86        -0.0937960651617229,
87        -0.0729949118337358,
88        -0.0521619529078925,
89        -0.0313062657937972,
90        -0.0104369378042598,
91        0.0104369378042598,
92        0.0313062657937972,
93        0.0521619529078925,
94        0.0729949118337358,
95        0.0937960651617229,
96        0.1145563493406956,
97        0.1352667186271445,
98        0.1559181490266516,
99        0.1765016422258567,
100        0.1970082295132342,
101        0.2174289756869712,
102        0.2377549829482451,
103        0.2579773947782034,
104        0.2780873997969574,
105        0.2980762356029071,
106        0.3179351925907259,
107        0.3376556177463400,
108        0.3572289184172501,
109        0.3766465660565522,
110        0.3959000999390257,
111        0.4149811308476706,
112        0.4338813447290861,
113        0.4525925063160997,
114        0.4711064627160663,
115        0.4894151469632753,
116        0.5075105815339176,
117        0.5253848818220803,
118        0.5430302595752546,
119        0.5604390262878617,
120        0.5776035965513142,
121        0.5945164913591590,
122        0.6111703413658551,
123        0.6275578900977726,
124        0.6436719971150083,
125        0.6595056411226444,
126        0.6750519230300931,
127        0.6903040689571928,
128        0.7052554331857488,
129        0.7198995010552305,
130        0.7342298918013638,
131        0.7482403613363824,
132        0.7619248049697269,
133        0.7752772600680049,
134        0.7882919086530552,
135        0.8009630799369827,
136        0.8132852527930605,
137        0.8252530581614230,
138        0.8368612813885015,
139        0.8481048644991847,
140        0.8589789084007133,
141        0.8694786750173527,
142        0.8795995893549102,
143        0.8893372414942055,
144        0.8986873885126239,
145        0.9076459563329236,
146        0.9162090414984952,
147        0.9243729128743136,
148        0.9321340132728527,
149        0.9394889610042837,
150        0.9464345513503147,
151        0.9529677579610971,
152        0.9590857341746905,
153        0.9647858142586956,
154        0.9700655145738374,
155        0.9749225346595943,
156        0.9793547582425894,
157        0.9833602541697529,
158        0.9869372772712794,
159        0.9900842691660192,
160        0.9927998590434373,
161        0.9950828645255290,
162        0.9969322929775997,
163        0.9983473449340834,
164        0.9993274305065947,
165        0.9998723404457334,
166        0., // zero padding is ignored
167        0.  // zero padding is ignored
168};
169
170constant double Gauss150Wt[152]={
171        0.0003276086705538,
172        0.0007624720924706,
173        0.0011976474864367,
174        0.0016323569986067,
175        0.0020663664924131,
176        0.0024994789888943,
177        0.0029315036836558,
178        0.0033622516236779,
179        0.0037915348363451,
180        0.0042191661429919,
181        0.0046449591497966,
182        0.0050687282939456,
183        0.0054902889094487,
184        0.0059094573005900,
185        0.0063260508184704,
186        0.0067398879387430,
187        0.0071507883396855,
188        0.0075585729801782,
189        0.0079630641773633,
190        0.0083640856838475,
191        0.0087614627643580,
192        0.0091550222717888,
193        0.0095445927225849,
194        0.0099300043714212,
195        0.0103110892851360,
196        0.0106876814158841,
197        0.0110596166734735,
198        0.0114267329968529,
199        0.0117888704247183,
200        0.0121458711652067,
201        0.0124975796646449,
202        0.0128438426753249,
203        0.0131845093222756,
204        0.0135194311690004,
205        0.0138484622795371,
206        0.0141714592928592,
207        0.0144882814685445,
208        0.0147987907597169,
209        0.0151028518701744,
210        0.0154003323133401,
211        0.0156911024699895,
212        0.0159750356447283,
213        0.0162520081211971,
214        0.0165218992159766,
215        0.0167845913311726,
216        0.0170399700056559,
217        0.0172879239649355,
218        0.0175283451696437,
219        0.0177611288626114,
220        0.0179861736145128,
221        0.0182033813680609,
222        0.0184126574807331,
223        0.0186139107660094,
224        0.0188070535331042,
225        0.0189920016251754,
226        0.0191686744559934,
227        0.0193369950450545,
228        0.0194968900511231,
229        0.0196482898041878,
230        0.0197911283358190,
231        0.0199253434079123,
232        0.0200508765398072,
233        0.0201676730337687,
234        0.0202756819988200,
235        0.0203748563729175,
236        0.0204651529434560,
237        0.0205465323660984,
238        0.0206189591819181,
239        0.0206824018328499,
240        0.0207368326754401,
241        0.0207822279928917,
242        0.0208185680053983,
243        0.0208458368787627,
244        0.0208640227312962,
245        0.0208731176389954,
246        0.0208731176389954,
247        0.0208640227312962,
248        0.0208458368787627,
249        0.0208185680053983,
250        0.0207822279928917,
251        0.0207368326754401,
252        0.0206824018328499,
253        0.0206189591819181,
254        0.0205465323660984,
255        0.0204651529434560,
256        0.0203748563729175,
257        0.0202756819988200,
258        0.0201676730337687,
259        0.0200508765398072,
260        0.0199253434079123,
261        0.0197911283358190,
262        0.0196482898041878,
263        0.0194968900511231,
264        0.0193369950450545,
265        0.0191686744559934,
266        0.0189920016251754,
267        0.0188070535331042,
268        0.0186139107660094,
269        0.0184126574807331,
270        0.0182033813680609,
271        0.0179861736145128,
272        0.0177611288626114,
273        0.0175283451696437,
274        0.0172879239649355,
275        0.0170399700056559,
276        0.0167845913311726,
277        0.0165218992159766,
278        0.0162520081211971,
279        0.0159750356447283,
280        0.0156911024699895,
281        0.0154003323133401,
282        0.0151028518701744,
283        0.0147987907597169,
284        0.0144882814685445,
285        0.0141714592928592,
286        0.0138484622795371,
287        0.0135194311690004,
288        0.0131845093222756,
289        0.0128438426753249,
290        0.0124975796646449,
291        0.0121458711652067,
292        0.0117888704247183,
293        0.0114267329968529,
294        0.0110596166734735,
295        0.0106876814158841,
296        0.0103110892851360,
297        0.0099300043714212,
298        0.0095445927225849,
299        0.0091550222717888,
300        0.0087614627643580,
301        0.0083640856838475,
302        0.0079630641773633,
303        0.0075585729801782,
304        0.0071507883396855,
305        0.0067398879387430,
306        0.0063260508184704,
307        0.0059094573005900,
308        0.0054902889094487,
309        0.0050687282939456,
310        0.0046449591497966,
311        0.0042191661429919,
312        0.0037915348363451,
313        0.0033622516236779,
314        0.0029315036836558,
315        0.0024994789888943,
316        0.0020663664924131,
317        0.0016323569986067,
318        0.0011976474864367,
319        0.0007624720924706,
320        0.0003276086705538,
321        0., // zero padding is ignored
322        0.  // zero padding is ignored
323};
Note: See TracBrowser for help on using the repository browser.