Changes in sasmodels/models/spherical_sld.c [54bcd4a:925ad6e] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/spherical_sld.c
r54bcd4a r925ad6e 34 34 const double qr = q * r; 35 35 const double qrsq = qr * qr; 36 const double bes = s ph_j1c(qr);36 const double bes = sas_3j1x_x(qr); 37 37 double sinqr, cosqr; 38 38 SINCOS(qr, sinqr, cosqr); … … 60 60 61 61 // uniform shell; r=0 => r^3=0 => f=0, so works for core as well. 62 f -= M_4PI_3 * cube(r) * sld_l * s ph_j1c(q*r);62 f -= M_4PI_3 * cube(r) * sld_l * sas_3j1x_x(q*r); 63 63 r += thickness[shell]; 64 f += M_4PI_3 * cube(r) * sld_l * s ph_j1c(q*r);64 f += M_4PI_3 * cube(r) * sld_l * sas_3j1x_x(q*r); 65 65 66 66 // iterate over sub_shells in the interface … … 92 92 } 93 93 // add in solvent effect 94 f -= M_4PI_3 * cube(r) * sld_solvent * s ph_j1c(q*r);94 f -= M_4PI_3 * cube(r) * sld_solvent * sas_3j1x_x(q*r); 95 95 96 96 const double f2 = f * f * 1.0e-4;
Note: See TracChangeset
for help on using the changeset viewer.