Changeset 3a48772 in sasmodels for sasmodels/models/linear_pearls.c
- Timestamp:
- Oct 14, 2016 5:23:40 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:
- a5b6997
- Parents:
- b716cc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/linear_pearls.c
r2c74c11 r3a48772 19 19 { 20 20 // Pearl volume 21 double pearl_vol = 4.0 /3.0 * M_PI * pow(radius, 3.0);21 double pearl_vol = M_4PI_3 * cube(radius); 22 22 // Return total volume 23 23 return num_pearls * pearl_vol;; … … 35 35 double contrast_pearl = pearl_sld - solvent_sld; 36 36 //each volume 37 double pearl_vol = 4.0 /3.0 * M_PI * pow(radius, 3.0);37 double pearl_vol = M_4PI_3 * cube(radius); 38 38 //total volume 39 39 double tot_vol = num_pearls * pearl_vol;
Note: See TracChangeset
for help on using the changeset viewer.