source: sasmodels/sasmodels/special.py @ db03406

Last change on this file since db03406 was db03406, checked in by Paul Kienzle <pkienzle@…>, 6 years ago

first pass at python to C translator for kernels

  • Property mode set to 100644
File size: 23.4 KB
Line 
1r"""
2Special Functions
3.................
4
5The C code follows the C99 standard, with the usual math functions,
6as defined in
7`OpenCL <https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/mathFunctions.html>`_.
8This includes the following:
9
10    M_PI, M_PI_2, M_PI_4, M_SQRT1_2, M_E:
11        $\pi$, $\pi/2$, $\pi/4$, $1/\sqrt{2}$ and Euler's constant $e$
12
13    exp, log, pow(x,y), expm1, sqrt:
14        Power functions $e^x$, $\ln x$, $x^y$, $e^x - 1$, $\sqrt{x}$.
15        The function expm1(x) is accurate across all $x$, including $x$
16        very close to zero.
17
18    sin, cos, tan, asin, acos, atan:
19        Trigonometry functions and inverses, operating on radians.
20
21    sinh, cosh, tanh, asinh, acosh, atanh:
22        Hyperbolic trigonometry functions.
23
24    atan2(y,x):
25        Angle from the $x$\ -axis to the point $(x,y)$, which is equal to
26        $\tan^{-1}(y/x)$ corrected for quadrant.  That is, if $x$ and $y$ are
27        both negative, then atan2(y,x) returns a value in quadrant III where
28        atan(y/x) would return a value in quadrant I. Similarly for
29        quadrants II and IV when $x$ and $y$ have opposite sign.
30
31    fmin(x,y), fmax(x,y), trunc, rint:
32        Floating point functions.  rint(x) returns the nearest integer.
33
34    NAN:
35        NaN, Not a Number, $0/0$.  Use isnan(x) to test for NaN.  Note that
36        you cannot use :code:`x == NAN` to test for NaN values since that
37        will always return false.  NAN does not equal NAN!
38
39    INFINITY:
40        $\infty, 1/0$.  Use isinf(x) to test for infinity, or isfinite(x)
41        to test for finite and not NaN.
42
43    erf, erfc, tgamma, lgamma:  **do not use**
44        Special functions that should be part of the standard, but are missing
45        or inaccurate on some platforms. Use sas_erf, sas_erfc and sas_gamma
46        instead (see below). Note: lgamma(x) has not yet been tested.
47
48Some non-standard constants and functions are also provided:
49
50    M_PI_180, M_4PI_3:
51        $\frac{\pi}{180}$, $\frac{4\pi}{3}$
52
53    SINCOS(x, s, c):
54        Macro which sets s=sin(x) and c=cos(x). The variables *c* and *s*
55        must be declared first.
56
57    square(x):
58        $x^2$
59
60    cube(x):
61        $x^3$
62
63    sas_sinx_x(x):
64        $\sin(x)/x$, with limit $\sin(0)/0 = 1$.
65
66    powr(x, y):
67        $x^y$ for $x \ge 0$; this is faster than general $x^y$ on some GPUs.
68
69    pown(x, n):
70        $x^n$ for $n$ integer; this is faster than general $x^n$ on some GPUs.
71
72    FLOAT_SIZE:
73        The number of bytes in a floating point value.  Even though all
74        variables are declared double, they may be converted to single
75        precision float before running. If your algorithm depends on
76        precision (which is not uncommon for numerical algorithms), use
77        the following::
78
79            #if FLOAT_SIZE>4
80            ... code for double precision ...
81            #else
82            ... code for single precision ...
83            #endif
84
85    SAS_DOUBLE:
86        A replacement for :code:`double` so that the declared variable will
87        stay double precision; this should generally not be used since some
88        graphics cards do not support double precision.  There is no provision
89        for forcing a constant to stay double precision.
90
91The following special functions and scattering calculations are defined in
92`sasmodels/models/lib <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib>`_.
93These functions have been tuned to be fast and numerically stable down
94to $q=0$ even in single precision.  In some cases they work around bugs
95which appear on some platforms but not others, so use them where needed.
96Add the files listed in :code:`source = ["lib/file.c", ...]` to your *model.py*
97file in the order given, otherwise these functions will not be available.
98
99    polevl(x, c, n):
100        Polynomial evaluation $p(x) = \sum_{i=0}^n c_i x^i$ using Horner's
101        method so it is faster and more accurate.
102
103        $c = \{c_n, c_{n-1}, \ldots, c_0 \}$ is the table of coefficients,
104        sorted from highest to lowest.
105
106    p1evl(x, c, n):
107        Evaluate normalized polynomial $p(x) = x^n + \sum_{i=0}^{n-1} c_i x^i$
108        using Horner's method so it is faster and more accurate.
109
110        $c = \{c_{n-1}, c_{n-2} \ldots, c_0 \}$ is the table of coefficients,
111        sorted from highest to lowest.
112
113    sas_gamma(x):
114        Gamma function $\text{sas_gamma}(x) = \Gamma(x)$.
115
116        The standard math function, tgamma(x) is unstable for $x < 1$
117        on some platforms.
118
119    sas_erf(x), sas_erfc(x):
120        Error function
121        $\text{sas_erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,dt$
122        and complementary error function
123        $\text{sas_erfc}(x) = \frac{2}{\sqrt\pi}\int_x^{\infty} e^{-t^2}\,dt$.
124
125        The standard math functions erf(x) and erfc(x) are slower and broken
126        on some platforms.
127
128    sas_J0(x):
129        Bessel function of the first kind $\text{sas_J0}(x)=J_0(x)$ where
130        $J_0(x) = \frac{1}{\pi}\int_0^\pi \cos(x\sin(\tau))\,d\tau$.
131
132        The standard math function j0(x) is not available on all platforms.
133
134    sas_J1(x):
135        Bessel function of the first kind  $\text{sas_J1}(x)=J_1(x)$ where
136        $J_1(x) = \frac{1}{\pi}\int_0^\pi \cos(\tau - x\sin(\tau))\,d\tau$.
137
138        The standard math function j1(x) is not available on all platforms.
139
140    sas_JN(n, x):
141        Bessel function of the first kind and integer order $n$:
142        $\text{sas_JN}(n, x)=J_n(x)$ where
143        $J_n(x) = \frac{1}{\pi}\int_0^\pi \cos(n\tau - x\sin(\tau))\,d\tau$.
144        If $n$ = 0 or 1, it uses sas_J0(x) or sas_J1(x), respectively.
145
146        The standard math function jn(n, x) is not available on all platforms.
147
148    sas_Si(x):
149        Sine integral $\text{Si}(x) = \int_0^x \tfrac{\sin t}{t}\,dt$.
150
151        This function uses Taylor series for small and large arguments:
152
153        For large arguments,
154
155        .. math::
156
157            \text{Si}(x) \sim \frac{\pi}{2}
158             - \frac{\cos(x)}{x}
159            \left(1 - \frac{2!}{x^2} + \frac{4!}{x^4} - \frac{6!}{x^6} \right)
160             - \frac{\sin(x)}{x}
161            \left(\frac{1}{x} - \frac{3!}{x^3} + \frac{5!}{x^5} - \frac{7!}{x^7}\right)
162
163        For small arguments,
164
165        .. math::
166
167           \text{Si}(x) \sim x
168           - \frac{x^3}{3\times 3!} + \frac{x^5}{5 \times 5!} - \frac{x^7}{7 \times 7!}
169           + \frac{x^9}{9\times 9!} - \frac{x^{11}}{11\times 11!}
170
171    sas_3j1x_x(x):
172        Spherical Bessel form
173        $\text{sph_j1c}(x) = 3 j_1(x)/x = 3 (\sin(x) - x \cos(x))/x^3$,
174        with a limiting value of 1 at $x=0$, where $j_1(x)$ is the spherical
175        Bessel function of the first kind and first order.
176
177        This function uses a Taylor series for small $x$ for numerical accuracy.
178
179
180    sas_2J1x_x(x):
181        Bessel form $\text{sas_J1c}(x) = 2 J_1(x)/x$, with a limiting value
182        of 1 at $x=0$, where $J_1(x)$ is the Bessel function of first kind
183        and first order.
184
185
186    Gauss76Z[i], Gauss76Wt[i]:
187        Points $z_i$ and weights $w_i$ for 76-point Gaussian quadrature, respectively,
188        computing $\int_{-1}^1 f(z)\,dz \approx \sum_{i=1}^{76} w_i\,f(z_i)$.
189
190        Similar arrays are available in :code:`gauss20.c` for 20-point
191        quadrature and in :code:`gauss150.c` for 150-point quadrature.
192
193"""
194# pylint: disable=unused-import
195
196import numpy as np
197
198# Functions to add to our standard set
199from numpy import degrees, radians
200
201# C99 standard math library functions
202from numpy import exp, log, power as pow, expm1, sqrt
203from numpy import sin, cos, tan, arcsin as asin, arccos as acos, arctan as atan
204from numpy import sinh, cosh, tanh, arcsinh as asinh, arccosh as acosh, arctanh as atanh
205from numpy import arctan2 as atan2
206from numpy import fmin, fmax, trunc, rint
207from numpy import pi, nan, inf
208NAN = nan
209INFINITY = inf
210
211from scipy.special import gamma as sas_gamma
212from scipy.special import erf as sas_erf
213from scipy.special import erfc as sas_erfc
214from scipy.special import j0 as sas_J0
215from scipy.special import j1 as sas_J1
216from scipy.special import jn as sas_JN
217
218# erf, erfc, tgamma, lgamma  **do not use**
219
220# C99 standard math constants
221M_PI, M_PI_2, M_PI_4, M_SQRT1_2, M_E = np.pi, np.pi/2, np.pi/4, np.sqrt(0.5), np.e
222
223# non-standard constants
224M_PI_180, M_4PI_3 = M_PI/180, 4*M_PI/3
225
226# can't do SINCOS in python; use "s, c = SINCOS(x)" instead
227def SINCOS(x):
228    """return sin(x), cos(x)"""
229    return sin(x), cos(x)
230sincos = SINCOS
231
232def square(x):
233    """return x^2"""
234    return x*x
235
236def cube(x):
237    """return x^3"""
238    return x*x*x
239
240def sas_sinx_x(x):
241    """return sin(x)/x"""
242    from numpy import sinc as _sinc
243    return _sinc(x/M_PI)
244
245def powr(x, y):
246    """return x^y for x>0"""
247    return x**y
248def pown(x, n):
249    """return x^n for n integer"""
250    return x**n
251
252FLOAT_SIZE = 8
253
254def polevl(x, c, n):
255    """return p(x) for polynomial p of degree n-1 with coefficients c"""
256    return np.polyval(c[:n], x)
257
258def p1evl(x, c, n):
259    """return x^n + p(x) for polynomial p of degree n-1 with coefficients c"""
260    return np.polyval(np.hstack(([1.], c))[:n], x)
261
262def sas_Si(x):
263    """return Si(x)"""
264    from scipy.special import sici
265    return sici(x)[0]
266
267def sas_j1(x):
268    """return j1(x)"""
269    if np.isscalar(x):
270        retvalue = (sin(x) - x*cos(x))/x**2 if x != 0. else 0.
271    else:
272        with np.errstate(all='ignore'):
273            retvalue = (sin(x) - x*cos(x))/x**2
274        retvalue[x == 0.] = 0.
275    return retvalue
276
277def sas_3j1x_x(x):
278    """return 3*j1(x)/x"""
279    if np.isscalar(x):
280        retvalue = 3*(sin(x) - x*cos(x))/x**3 if x != 0. else 1.
281    else:
282        with np.errstate(all='ignore'):
283            retvalue = 3*(sin(x) - x*cos(x))/x**3
284        retvalue[x == 0.] = 1.
285    return retvalue
286
287def sas_2J1x_x(x):
288    """return 2*J1(x)/x"""
289    if np.isscalar(x):
290        retvalue = 2*sas_J1(x)/x if x != 0 else 1.
291    else:
292        with np.errstate(all='ignore'):
293            retvalue = 2*sas_J1(x)/x
294        retvalue[x == 0] = 1.
295    return retvalue
296
297
298# Gaussians
299class Gauss:
300    def __init__(self, w, z):
301        self.n = len(w)
302        self.w = w
303        self.z = z
304
305gauss20 = Gauss(
306    w=np.array([
307        .0176140071391521,
308        .0406014298003869,
309        .0626720483341091,
310        .0832767415767047,
311        .10193011981724,
312        .118194531961518,
313        .131688638449177,
314        .142096109318382,
315        .149172986472604,
316        .152753387130726,
317        .152753387130726,
318        .149172986472604,
319        .142096109318382,
320        .131688638449177,
321        .118194531961518,
322        .10193011981724,
323        .0832767415767047,
324        .0626720483341091,
325        .0406014298003869,
326        .0176140071391521
327    ]),
328    z=np.array([
329        -.993128599185095,
330        -.963971927277914,
331        -.912234428251326,
332        -.839116971822219,
333        -.746331906460151,
334        -.636053680726515,
335        -.510867001950827,
336        -.37370608871542,
337        -.227785851141645,
338        -.076526521133497,
339        .0765265211334973,
340        .227785851141645,
341        .37370608871542,
342        .510867001950827,
343        .636053680726515,
344        .746331906460151,
345        .839116971822219,
346        .912234428251326,
347        .963971927277914,
348        .993128599185095
349    ])
350)
351
352gauss76 = Gauss(
353    w=np.array([
354        .00126779163408536,             #0
355        .00294910295364247,
356        .00462793522803742,
357        .00629918049732845,
358        .00795984747723973,
359        .00960710541471375,
360        .0112381685696677,
361        .0128502838475101,
362        .0144407317482767,
363        .0160068299122486,
364        .0175459372914742,              #10
365        .0190554584671906,
366        .020532847967908,
367        .0219756145344162,
368        .0233813253070112,
369        .0247476099206597,
370        .026072164497986,
371        .0273527555318275,
372        .028587223650054,
373        .029773487255905,
374        .0309095460374916,              #20
375        .0319934843404216,
376        .0330234743977917,
377        .0339977794120564,
378        .0349147564835508,
379        .0357728593807139,
380        .0365706411473296,
381        .0373067565423816,
382        .0379799643084053,
383        .0385891292645067,
384        .0391332242205184,              #30
385        .0396113317090621,
386        .0400226455325968,
387        .040366472122844,
388        .0406422317102947,
389        .0408494593018285,
390        .040987805464794,
391        .0410570369162294,
392        .0410570369162294,
393        .040987805464794,
394        .0408494593018285,              #40
395        .0406422317102947,
396        .040366472122844,
397        .0400226455325968,
398        .0396113317090621,
399        .0391332242205184,
400        .0385891292645067,
401        .0379799643084053,
402        .0373067565423816,
403        .0365706411473296,
404        .0357728593807139,              #50
405        .0349147564835508,
406        .0339977794120564,
407        .0330234743977917,
408        .0319934843404216,
409        .0309095460374916,
410        .029773487255905,
411        .028587223650054,
412        .0273527555318275,
413        .026072164497986,
414        .0247476099206597,              #60
415        .0233813253070112,
416        .0219756145344162,
417        .020532847967908,
418        .0190554584671906,
419        .0175459372914742,
420        .0160068299122486,
421        .0144407317482767,
422        .0128502838475101,
423        .0112381685696677,
424        .00960710541471375,             #70
425        .00795984747723973,
426        .00629918049732845,
427        .00462793522803742,
428        .00294910295364247,
429        .00126779163408536              #75 (indexed from 0)
430    ]),
431    z=np.array([
432        -.999505948362153,              #0
433        -.997397786355355,
434        -.993608772723527,
435        -.988144453359837,
436        -.981013938975656,
437        -.972229228520377,
438        -.961805126758768,
439        -.949759207710896,
440        -.936111781934811,
441        -.92088586125215,
442        -.904107119545567,              #10
443        -.885803849292083,
444        -.866006913771982,
445        -.844749694983342,
446        -.822068037328975,
447        -.7980001871612,
448        -.77258672828181,
449        -.74587051350361,
450        -.717896592387704,
451        -.688712135277641,
452        -.658366353758143,              #20
453        -.626910417672267,
454        -.594397368836793,
455        -.560882031601237,
456        -.526420920401243,
457        -.491072144462194,
458        -.454895309813726,
459        -.417951418780327,
460        -.380302767117504,
461        -.342012838966962,
462        -.303146199807908,              #30
463        -.263768387584994,
464        -.223945802196474,
465        -.183745593528914,
466        -.143235548227268,
467        -.102483975391227,
468        -.0615595913906112,
469        -.0205314039939986,
470        .0205314039939986,
471        .0615595913906112,
472        .102483975391227,                       #40
473        .143235548227268,
474        .183745593528914,
475        .223945802196474,
476        .263768387584994,
477        .303146199807908,
478        .342012838966962,
479        .380302767117504,
480        .417951418780327,
481        .454895309813726,
482        .491072144462194,               #50
483        .526420920401243,
484        .560882031601237,
485        .594397368836793,
486        .626910417672267,
487        .658366353758143,
488        .688712135277641,
489        .717896592387704,
490        .74587051350361,
491        .77258672828181,
492        .7980001871612, #60
493        .822068037328975,
494        .844749694983342,
495        .866006913771982,
496        .885803849292083,
497        .904107119545567,
498        .92088586125215,
499        .936111781934811,
500        .949759207710896,
501        .961805126758768,
502        .972229228520377,               #70
503        .981013938975656,
504        .988144453359837,
505        .993608772723527,
506        .997397786355355,
507        .999505948362153                #75
508    ])
509)
510
511gauss150 = Gauss(
512    z=np.array([
513        -0.9998723404457334,
514        -0.9993274305065947,
515        -0.9983473449340834,
516        -0.9969322929775997,
517        -0.9950828645255290,
518        -0.9927998590434373,
519        -0.9900842691660192,
520        -0.9869372772712794,
521        -0.9833602541697529,
522        -0.9793547582425894,
523        -0.9749225346595943,
524        -0.9700655145738374,
525        -0.9647858142586956,
526        -0.9590857341746905,
527        -0.9529677579610971,
528        -0.9464345513503147,
529        -0.9394889610042837,
530        -0.9321340132728527,
531        -0.9243729128743136,
532        -0.9162090414984952,
533        -0.9076459563329236,
534        -0.8986873885126239,
535        -0.8893372414942055,
536        -0.8795995893549102,
537        -0.8694786750173527,
538        -0.8589789084007133,
539        -0.8481048644991847,
540        -0.8368612813885015,
541        -0.8252530581614230,
542        -0.8132852527930605,
543        -0.8009630799369827,
544        -0.7882919086530552,
545        -0.7752772600680049,
546        -0.7619248049697269,
547        -0.7482403613363824,
548        -0.7342298918013638,
549        -0.7198995010552305,
550        -0.7052554331857488,
551        -0.6903040689571928,
552        -0.6750519230300931,
553        -0.6595056411226444,
554        -0.6436719971150083,
555        -0.6275578900977726,
556        -0.6111703413658551,
557        -0.5945164913591590,
558        -0.5776035965513142,
559        -0.5604390262878617,
560        -0.5430302595752546,
561        -0.5253848818220803,
562        -0.5075105815339176,
563        -0.4894151469632753,
564        -0.4711064627160663,
565        -0.4525925063160997,
566        -0.4338813447290861,
567        -0.4149811308476706,
568        -0.3959000999390257,
569        -0.3766465660565522,
570        -0.3572289184172501,
571        -0.3376556177463400,
572        -0.3179351925907259,
573        -0.2980762356029071,
574        -0.2780873997969574,
575        -0.2579773947782034,
576        -0.2377549829482451,
577        -0.2174289756869712,
578        -0.1970082295132342,
579        -0.1765016422258567,
580        -0.1559181490266516,
581        -0.1352667186271445,
582        -0.1145563493406956,
583        -0.0937960651617229,
584        -0.0729949118337358,
585        -0.0521619529078925,
586        -0.0313062657937972,
587        -0.0104369378042598,
588        0.0104369378042598,
589        0.0313062657937972,
590        0.0521619529078925,
591        0.0729949118337358,
592        0.0937960651617229,
593        0.1145563493406956,
594        0.1352667186271445,
595        0.1559181490266516,
596        0.1765016422258567,
597        0.1970082295132342,
598        0.2174289756869712,
599        0.2377549829482451,
600        0.2579773947782034,
601        0.2780873997969574,
602        0.2980762356029071,
603        0.3179351925907259,
604        0.3376556177463400,
605        0.3572289184172501,
606        0.3766465660565522,
607        0.3959000999390257,
608        0.4149811308476706,
609        0.4338813447290861,
610        0.4525925063160997,
611        0.4711064627160663,
612        0.4894151469632753,
613        0.5075105815339176,
614        0.5253848818220803,
615        0.5430302595752546,
616        0.5604390262878617,
617        0.5776035965513142,
618        0.5945164913591590,
619        0.6111703413658551,
620        0.6275578900977726,
621        0.6436719971150083,
622        0.6595056411226444,
623        0.6750519230300931,
624        0.6903040689571928,
625        0.7052554331857488,
626        0.7198995010552305,
627        0.7342298918013638,
628        0.7482403613363824,
629        0.7619248049697269,
630        0.7752772600680049,
631        0.7882919086530552,
632        0.8009630799369827,
633        0.8132852527930605,
634        0.8252530581614230,
635        0.8368612813885015,
636        0.8481048644991847,
637        0.8589789084007133,
638        0.8694786750173527,
639        0.8795995893549102,
640        0.8893372414942055,
641        0.8986873885126239,
642        0.9076459563329236,
643        0.9162090414984952,
644        0.9243729128743136,
645        0.9321340132728527,
646        0.9394889610042837,
647        0.9464345513503147,
648        0.9529677579610971,
649        0.9590857341746905,
650        0.9647858142586956,
651        0.9700655145738374,
652        0.9749225346595943,
653        0.9793547582425894,
654        0.9833602541697529,
655        0.9869372772712794,
656        0.9900842691660192,
657        0.9927998590434373,
658        0.9950828645255290,
659        0.9969322929775997,
660        0.9983473449340834,
661        0.9993274305065947,
662        0.9998723404457334
663    ]),
664    w=np.array([
665        0.0003276086705538,
666        0.0007624720924706,
667        0.0011976474864367,
668        0.0016323569986067,
669        0.0020663664924131,
670        0.0024994789888943,
671        0.0029315036836558,
672        0.0033622516236779,
673        0.0037915348363451,
674        0.0042191661429919,
675        0.0046449591497966,
676        0.0050687282939456,
677        0.0054902889094487,
678        0.0059094573005900,
679        0.0063260508184704,
680        0.0067398879387430,
681        0.0071507883396855,
682        0.0075585729801782,
683        0.0079630641773633,
684        0.0083640856838475,
685        0.0087614627643580,
686        0.0091550222717888,
687        0.0095445927225849,
688        0.0099300043714212,
689        0.0103110892851360,
690        0.0106876814158841,
691        0.0110596166734735,
692        0.0114267329968529,
693        0.0117888704247183,
694        0.0121458711652067,
695        0.0124975796646449,
696        0.0128438426753249,
697        0.0131845093222756,
698        0.0135194311690004,
699        0.0138484622795371,
700        0.0141714592928592,
701        0.0144882814685445,
702        0.0147987907597169,
703        0.0151028518701744,
704        0.0154003323133401,
705        0.0156911024699895,
706        0.0159750356447283,
707        0.0162520081211971,
708        0.0165218992159766,
709        0.0167845913311726,
710        0.0170399700056559,
711        0.0172879239649355,
712        0.0175283451696437,
713        0.0177611288626114,
714        0.0179861736145128,
715        0.0182033813680609,
716        0.0184126574807331,
717        0.0186139107660094,
718        0.0188070535331042,
719        0.0189920016251754,
720        0.0191686744559934,
721        0.0193369950450545,
722        0.0194968900511231,
723        0.0196482898041878,
724        0.0197911283358190,
725        0.0199253434079123,
726        0.0200508765398072,
727        0.0201676730337687,
728        0.0202756819988200,
729        0.0203748563729175,
730        0.0204651529434560,
731        0.0205465323660984,
732        0.0206189591819181,
733        0.0206824018328499,
734        0.0207368326754401,
735        0.0207822279928917,
736        0.0208185680053983,
737        0.0208458368787627,
738        0.0208640227312962,
739        0.0208731176389954,
740        0.0208731176389954,
741        0.0208640227312962,
742        0.0208458368787627,
743        0.0208185680053983,
744        0.0207822279928917,
745        0.0207368326754401,
746        0.0206824018328499,
747        0.0206189591819181,
748        0.0205465323660984,
749        0.0204651529434560,
750        0.0203748563729175,
751        0.0202756819988200,
752        0.0201676730337687,
753        0.0200508765398072,
754        0.0199253434079123,
755        0.0197911283358190,
756        0.0196482898041878,
757        0.0194968900511231,
758        0.0193369950450545,
759        0.0191686744559934,
760        0.0189920016251754,
761        0.0188070535331042,
762        0.0186139107660094,
763        0.0184126574807331,
764        0.0182033813680609,
765        0.0179861736145128,
766        0.0177611288626114,
767        0.0175283451696437,
768        0.0172879239649355,
769        0.0170399700056559,
770        0.0167845913311726,
771        0.0165218992159766,
772        0.0162520081211971,
773        0.0159750356447283,
774        0.0156911024699895,
775        0.0154003323133401,
776        0.0151028518701744,
777        0.0147987907597169,
778        0.0144882814685445,
779        0.0141714592928592,
780        0.0138484622795371,
781        0.0135194311690004,
782        0.0131845093222756,
783        0.0128438426753249,
784        0.0124975796646449,
785        0.0121458711652067,
786        0.0117888704247183,
787        0.0114267329968529,
788        0.0110596166734735,
789        0.0106876814158841,
790        0.0103110892851360,
791        0.0099300043714212,
792        0.0095445927225849,
793        0.0091550222717888,
794        0.0087614627643580,
795        0.0083640856838475,
796        0.0079630641773633,
797        0.0075585729801782,
798        0.0071507883396855,
799        0.0067398879387430,
800        0.0063260508184704,
801        0.0059094573005900,
802        0.0054902889094487,
803        0.0050687282939456,
804        0.0046449591497966,
805        0.0042191661429919,
806        0.0037915348363451,
807        0.0033622516236779,
808        0.0029315036836558,
809        0.0024994789888943,
810        0.0020663664924131,
811        0.0016323569986067,
812        0.0011976474864367,
813        0.0007624720924706,
814        0.0003276086705538
815    ])
816)
Note: See TracBrowser for help on using the repository browser.