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