Changeset 4962519 in sasmodels for sasmodels/models/linear_pearls.c
- Timestamp:
- Oct 14, 2016 4:49:58 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 14838a3
- Parents:
- a5b6997
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/linear_pearls.c
r3a48772 r4962519 43 43 double separation = edge_sep + 2.0 * radius; 44 44 45 double x=q*radius;46 47 // Try Taylor on x*xos(x)48 // double out_cos = x - pow(x,3)/2 + pow(x,5)/24 - pow(x,7)/720 + pow(x,9)/40320;49 // psi -= x*out_cos;50 51 45 //sine functions of a pearl 52 double psi = sin(q * radius); 53 psi -= x * cos(x); 54 psi /= pow((q * radius), 3.0); 46 double psi = sph_j1c(q * radius); 55 47 56 48 // N pearls contribution … … 61 53 } 62 54 // form factor for num_pearls 63 double form_factor = n_contrib; 64 form_factor *= pow((m_s*psi*3.0), 2.0); 65 form_factor /= (tot_vol * 1.0e4); 55 double form_factor = 1.0e-4 * n_contrib * square(m_s*psi) / tot_vol; 66 56 67 57 return form_factor;
Note: See TracChangeset
for help on using the changeset viewer.