Changeset 3a48772 in sasmodels for sasmodels/models/linear_pearls.c


Ignore:
Timestamp:
Oct 14, 2016 5:23:40 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

use predefined constants for fractions of pi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/linear_pearls.c

    r2c74c11 r3a48772  
    1919{ 
    2020    // 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); 
    2222    // Return total volume 
    2323    return num_pearls * pearl_vol;; 
     
    3535    double contrast_pearl = pearl_sld - solvent_sld; 
    3636    //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); 
    3838    //total volume 
    3939    double tot_vol = num_pearls * pearl_vol; 
Note: See TracChangeset for help on using the changeset viewer.