Changes in / [541e7c9:ee8f734] in sasmodels


Ignore:
Location:
sasmodels
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    r0278e3f rc4e7a5f  
    226226#ifdef IQXY_OPEN_LOOPS 
    227227    double ret=0.0, norm=0.0; 
     228    #ifdef VOLUME_PARAMETERS 
     229    double vol=0.0, norm_vol=0.0; 
     230    #endif 
    228231    IQXY_OPEN_LOOPS 
    229232    //for (int radius_i=0; radius_i < Nradius; radius_i++) { 
     
    240243        // For cos(theta) fixed at 90, we effectively multiply top and bottom 
    241244        // by 1e-6, so the effect cancels. 
    242         const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1.e-6); 
     245        const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1e-6); 
    243246        weight *= spherical_correction; 
    244247      #endif 
  • sasmodels/models/lib/Si.c

    r0278e3f rba32cdd  
    11// integral of sin(x)/x Taylor series approximated to w/i 0.1% 
    22double Si(double x); 
     3 
    34double Si(double x) 
    45{ 
  • sasmodels/models/lib/polevl.c

    r0278e3f rba32cdd  
    5252 
    5353double polevl( double x, constant double *coef, int N ); 
     54double p1evl( double x, constant double *coef, int N ); 
     55 
     56 
    5457double polevl( double x, constant double *coef, int N ) 
    5558{ 
     
    6366    } 
    6467 
    65     return ans; 
     68    return ans ; 
    6669} 
    6770 
     
    7275 */ 
    7376 
    74 double p1evl( double x, constant double *coef, int N ); 
    7577double p1evl( double x, constant double *coef, int N ) 
    7678{ 
     
    8385    } 
    8486 
    85     return ans; 
     87    return( ans ); 
    8688} 
  • sasmodels/models/lib/sas_J0.c

    r0278e3f rba32cdd  
    4949Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 
    5050*/ 
     51 
     52double sas_J0(double x); 
    5153 
    5254/* Note: all coefficients satisfy the relative error criterion 
     
    177179 }; 
    178180 
    179 double sas_J0(double x); 
    180181double sas_J0(double x) 
    181182{ 
  • sasmodels/models/lib/sas_J1.c

    r0278e3f rba32cdd  
    3939Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 
    4040*/ 
     41double sas_J1(double x); 
     42double sas_J1c(double x); 
    4143 
    4244constant double RPJ1[8] = { 
     
    135137    }; 
    136138 
    137 double sas_J1(double x); 
    138139double sas_J1(double x) 
    139140{ 
     
    208209 
    209210//Finally J1c function that equals 2*J1(x)/x 
    210 double sas_J1c(double x); 
    211 double sas_J1c(double x) 
    212 { 
     211double sas_J1c(double x) { 
    213212    return (x != 0.0 ) ? 2.0*sas_J1(x)/x : 1.0; 
    214213} 
  • sasmodels/models/lib/sas_JN.c

    r0278e3f rba32cdd  
    4747Copyright 1984, 1987, 2000 by Stephen L. Moshier 
    4848*/ 
    49  
    5049double sas_JN( int n, double x ); 
    5150 
    52 double sas_JN( int n, double x ) { 
     51double sas_JN( int n, double x ) 
     52{ 
    5353 
    5454    const double MACHEP = 1.11022302462515654042E-16; 
Note: See TracChangeset for help on using the changeset viewer.