source: sasmodels/sasmodels/models/lib/gauss76.c @ 0db7dbd

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 0db7dbd was 0db7dbd, checked in by pkienzle, 6 years ago

cuda support: allow cylinder model to run under CUDA as well as OpenCL

  • Property mode set to 100644
File size: 3.3 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 76
9 #define GAUSS_Z Gauss76Z
10 #define GAUSS_W Gauss76Wt
11
12// Gaussians
13constant_var double Gauss76Wt[76] = {
14        .00126779163408536,             //0
15        .00294910295364247,
16        .00462793522803742,
17        .00629918049732845,
18        .00795984747723973,
19        .00960710541471375,
20        .0112381685696677,
21        .0128502838475101,
22        .0144407317482767,
23        .0160068299122486,
24        .0175459372914742,              //10
25        .0190554584671906,
26        .020532847967908,
27        .0219756145344162,
28        .0233813253070112,
29        .0247476099206597,
30        .026072164497986,
31        .0273527555318275,
32        .028587223650054,
33        .029773487255905,
34        .0309095460374916,              //20
35        .0319934843404216,
36        .0330234743977917,
37        .0339977794120564,
38        .0349147564835508,
39        .0357728593807139,
40        .0365706411473296,
41        .0373067565423816,
42        .0379799643084053,
43        .0385891292645067,
44        .0391332242205184,              //30
45        .0396113317090621,
46        .0400226455325968,
47        .040366472122844,
48        .0406422317102947,
49        .0408494593018285,
50        .040987805464794,
51        .0410570369162294,
52        .0410570369162294,
53        .040987805464794,
54        .0408494593018285,              //40
55        .0406422317102947,
56        .040366472122844,
57        .0400226455325968,
58        .0396113317090621,
59        .0391332242205184,
60        .0385891292645067,
61        .0379799643084053,
62        .0373067565423816,
63        .0365706411473296,
64        .0357728593807139,              //50
65        .0349147564835508,
66        .0339977794120564,
67        .0330234743977917,
68        .0319934843404216,
69        .0309095460374916,
70        .029773487255905,
71        .028587223650054,
72        .0273527555318275,
73        .026072164497986,
74        .0247476099206597,              //60
75        .0233813253070112,
76        .0219756145344162,
77        .020532847967908,
78        .0190554584671906,
79        .0175459372914742,
80        .0160068299122486,
81        .0144407317482767,
82        .0128502838475101,
83        .0112381685696677,
84        .00960710541471375,             //70
85        .00795984747723973,
86        .00629918049732845,
87        .00462793522803742,
88        .00294910295364247,
89        .00126779163408536              //75 (indexed from 0)
90};
91
92constant_var double Gauss76Z[76] = {
93        -.999505948362153,              //0
94        -.997397786355355,
95        -.993608772723527,
96        -.988144453359837,
97        -.981013938975656,
98        -.972229228520377,
99        -.961805126758768,
100        -.949759207710896,
101        -.936111781934811,
102        -.92088586125215,
103        -.904107119545567,              //10
104        -.885803849292083,
105        -.866006913771982,
106        -.844749694983342,
107        -.822068037328975,
108        -.7980001871612,
109        -.77258672828181,
110        -.74587051350361,
111        -.717896592387704,
112        -.688712135277641,
113        -.658366353758143,              //20
114        -.626910417672267,
115        -.594397368836793,
116        -.560882031601237,
117        -.526420920401243,
118        -.491072144462194,
119        -.454895309813726,
120        -.417951418780327,
121        -.380302767117504,
122        -.342012838966962,
123        -.303146199807908,              //30
124        -.263768387584994,
125        -.223945802196474,
126        -.183745593528914,
127        -.143235548227268,
128        -.102483975391227,
129        -.0615595913906112,
130        -.0205314039939986,
131        .0205314039939986,
132        .0615595913906112,
133        .102483975391227,                       //40
134        .143235548227268,
135        .183745593528914,
136        .223945802196474,
137        .263768387584994,
138        .303146199807908,
139        .342012838966962,
140        .380302767117504,
141        .417951418780327,
142        .454895309813726,
143        .491072144462194,               //50
144        .526420920401243,
145        .560882031601237,
146        .594397368836793,
147        .626910417672267,
148        .658366353758143,
149        .688712135277641,
150        .717896592387704,
151        .74587051350361,
152        .77258672828181,
153        .7980001871612, //60
154        .822068037328975,
155        .844749694983342,
156        .866006913771982,
157        .885803849292083,
158        .904107119545567,
159        .92088586125215,
160        .936111781934811,
161        .949759207710896,
162        .961805126758768,
163        .972229228520377,               //70
164        .981013938975656,
165        .988144453359837,
166        .993608772723527,
167        .997397786355355,
168        .999505948362153                //75
169};
Note: See TracBrowser for help on using the repository browser.