Changes in / [541e7c9:ee8f734] in sasmodels
- Location:
- sasmodels
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r0278e3f rc4e7a5f 226 226 #ifdef IQXY_OPEN_LOOPS 227 227 double ret=0.0, norm=0.0; 228 #ifdef VOLUME_PARAMETERS 229 double vol=0.0, norm_vol=0.0; 230 #endif 228 231 IQXY_OPEN_LOOPS 229 232 //for (int radius_i=0; radius_i < Nradius; radius_i++) { … … 240 243 // For cos(theta) fixed at 90, we effectively multiply top and bottom 241 244 // 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); 243 246 weight *= spherical_correction; 244 247 #endif -
sasmodels/models/lib/Si.c
r0278e3f rba32cdd 1 1 // integral of sin(x)/x Taylor series approximated to w/i 0.1% 2 2 double Si(double x); 3 3 4 double Si(double x) 4 5 { -
sasmodels/models/lib/polevl.c
r0278e3f rba32cdd 52 52 53 53 double polevl( double x, constant double *coef, int N ); 54 double p1evl( double x, constant double *coef, int N ); 55 56 54 57 double polevl( double x, constant double *coef, int N ) 55 58 { … … 63 66 } 64 67 65 return ans ;68 return ans ; 66 69 } 67 70 … … 72 75 */ 73 76 74 double p1evl( double x, constant double *coef, int N );75 77 double p1evl( double x, constant double *coef, int N ) 76 78 { … … 83 85 } 84 86 85 return ans;87 return( ans ); 86 88 } -
sasmodels/models/lib/sas_J0.c
r0278e3f rba32cdd 49 49 Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 50 50 */ 51 52 double sas_J0(double x); 51 53 52 54 /* Note: all coefficients satisfy the relative error criterion … … 177 179 }; 178 180 179 double sas_J0(double x);180 181 double sas_J0(double x) 181 182 { -
sasmodels/models/lib/sas_J1.c
r0278e3f rba32cdd 39 39 Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 40 40 */ 41 double sas_J1(double x); 42 double sas_J1c(double x); 41 43 42 44 constant double RPJ1[8] = { … … 135 137 }; 136 138 137 double sas_J1(double x);138 139 double sas_J1(double x) 139 140 { … … 208 209 209 210 //Finally J1c function that equals 2*J1(x)/x 210 double sas_J1c(double x); 211 double sas_J1c(double x) 212 { 211 double sas_J1c(double x) { 213 212 return (x != 0.0 ) ? 2.0*sas_J1(x)/x : 1.0; 214 213 } -
sasmodels/models/lib/sas_JN.c
r0278e3f rba32cdd 47 47 Copyright 1984, 1987, 2000 by Stephen L. Moshier 48 48 */ 49 50 49 double sas_JN( int n, double x ); 51 50 52 double sas_JN( int n, double x ) { 51 double sas_JN( int n, double x ) 52 { 53 53 54 54 const double MACHEP = 1.11022302462515654042E-16;
Note: See TracChangeset
for help on using the changeset viewer.