Changeset 4962519 in sasmodels for sasmodels/models/sc_paracrystal.c
- Timestamp:
- Oct 14, 2016 6:49:58 PM (8 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/sc_paracrystal.c
r3a48772 r4962519 49 49 double da = d_factor*dnn; 50 50 double temp1 = qq*qq*da*da; 51 double temp2 = pow( 1.0-exp(-1.0*temp1) ,3);51 double temp2 = cube(-expm1(-temp1)); 52 52 double temp3 = qq*dnn; 53 53 double temp4 = 2.0*exp(-0.5*temp1); 54 54 double temp5 = exp(-1.0*temp1); 55 55 56 double integrand = temp2*sc_eval(yy,xx,temp3,temp4,temp5); 57 integrand /= M_PI_2; 56 double integrand = temp2*sc_eval(yy,xx,temp3,temp4,temp5)/M_PI_2; 58 57 59 58 return(integrand);
Note: See TracChangeset
for help on using the changeset viewer.