Changes in / [ee8f734:541e7c9] in sasmodels


Ignore:
Location:
sasmodels
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    rc4e7a5f r0278e3f  
    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 
    231228    IQXY_OPEN_LOOPS 
    232229    //for (int radius_i=0; radius_i < Nradius; radius_i++) { 
     
    243240        // For cos(theta) fixed at 90, we effectively multiply top and bottom 
    244241        // by 1e-6, so the effect cancels. 
    245         const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1e-6); 
     242        const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1.e-6); 
    246243        weight *= spherical_correction; 
    247244      #endif 
  • sasmodels/models/lib/Si.c

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

    rba32cdd r0278e3f  
    5252 
    5353double polevl( double x, constant double *coef, int N ); 
    54 double p1evl( double x, constant double *coef, int N ); 
    55  
    56  
    5754double polevl( double x, constant double *coef, int N ) 
    5855{ 
     
    6663    } 
    6764 
    68     return ans ; 
     65    return ans; 
    6966} 
    7067 
     
    7572 */ 
    7673 
     74double p1evl( double x, constant double *coef, int N ); 
    7775double p1evl( double x, constant double *coef, int N ) 
    7876{ 
     
    8583    } 
    8684 
    87     return( ans ); 
     85    return ans; 
    8886} 
  • sasmodels/models/lib/sas_J0.c

    rba32cdd r0278e3f  
    4949Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 
    5050*/ 
    51  
    52 double sas_J0(double x); 
    5351 
    5452/* Note: all coefficients satisfy the relative error criterion 
     
    179177 }; 
    180178 
     179double sas_J0(double x); 
    181180double sas_J0(double x) 
    182181{ 
  • sasmodels/models/lib/sas_J1.c

    rba32cdd r0278e3f  
    3939Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 
    4040*/ 
    41 double sas_J1(double x); 
    42 double sas_J1c(double x); 
    4341 
    4442constant double RPJ1[8] = { 
     
    137135    }; 
    138136 
     137double sas_J1(double x); 
    139138double sas_J1(double x) 
    140139{ 
     
    209208 
    210209//Finally J1c function that equals 2*J1(x)/x 
    211 double sas_J1c(double x) { 
     210double sas_J1c(double x); 
     211double sas_J1c(double x) 
     212{ 
    212213    return (x != 0.0 ) ? 2.0*sas_J1(x)/x : 1.0; 
    213214} 
  • sasmodels/models/lib/sas_JN.c

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