Changeset ed23abe in sasmodels
- Timestamp:
- Oct 18, 2016 9:45:37 AM (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:
- c3ebc71
- Parents:
- 6f676fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_cylinder.c
r5bddd89 red23abe 11 11 _hollow_cylinder_scaling(double integrand, double delrho, double volume) 12 12 { 13 return 1.0e-4 * square(volume * delrho * integrand);13 return 1.0e-4 * square(volume * delrho) * integrand; 14 14 } 15 15 … … 32 32 form_volume(double radius, double thickness, double length) 33 33 { 34 double v_shell = M_PI*length*( (radius+thickness)*(radius+thickness)-radius*radius);35 return (v_shell);34 double v_shell = M_PI*length*(square(radius+thickness) - radius*radius); 35 return v_shell; 36 36 } 37 37 … … 50 50 const double inter = _hollow_cylinder_kernel(q, radius, thickness, length, 51 51 sin_val, cos_val); 52 summ += Gauss76Wt[i] * inter ;52 summ += Gauss76Wt[i] * inter * inter; 53 53 } 54 54 … … 69 69 70 70 const double vol = form_volume(radius, thickness, length); 71 return _hollow_cylinder_scaling(Aq , solvent_sld-sld, vol);71 return _hollow_cylinder_scaling(Aq*Aq, solvent_sld-sld, vol); 72 72 } 73 73 74
Note: See TracChangeset
for help on using the changeset viewer.