source: sasview/sansmodels/src/sans/models/libigor/libTwoPhase.h @ 916f5c0

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 916f5c0 was 34c2649, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

Re #4 Fixed warnings

  • Property mode set to 100644
File size: 1.3 KB
Line 
1// header for TwoPhaseFit.c
2
3//function prototypes
4/* IGOR Fit Functions */
5double TeubnerStreyModel(double dp[], double q);
6double Power_Law_Model(double dp[], double q);
7double Peak_Lorentz_Model(double dp[], double q);
8double Peak_Gauss_Model(double dp[], double q);
9double Lorentz_Model(double dp[], double q);
10double Fractal(double dp[], double q);
11double DAB_Model(double dp[], double q);
12double OneLevel(double dp[], double q);
13double TwoLevel(double dp[], double q);
14double ThreeLevel(double dp[], double q);
15double FourLevel(double dp[], double q);
16double BroadPeak(double dp[], double q);
17double CorrLength(double dp[], double q);
18double TwoLorentzian(double dp[], double q);
19double TwoPowerLaw(double dp[], double q);
20double PolyGaussCoil(double dp[], double q);
21double GaussLorentzGel(double dp[], double q);
22double GaussianShell(double dp[], double q);
23
24
25/* internal functions */
26static double
27gammln(double xx) {
28
29    double x,y,tmp,ser;
30    static double cof[6]={76.18009172947146,-86.50532032941677,
31                24.01409824083091,-1.231739572450155,
32                0.1208650973866179e-2,-0.5395239384953e-5};
33    int j;
34
35    y=x=xx;
36    tmp=x+5.5;
37    tmp -= (x+0.5)*log(tmp);
38    ser=1.000000000190015;
39    for (j=0;j<=5;j++) ser += cof[j]/++y;
40    return -tmp+log(2.5066282746310005*ser/x);
41}
42
43
Note: See TracBrowser for help on using the repository browser.