Changeset 3a48772 in sasmodels for sasmodels/models/parallelepiped.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/parallelepiped.c

    ra807206 r3a48772  
    7171            double uu = 0.5 * ( Gauss76Z[j] + 1.0 ); 
    7272            double mudum = mu * sqrt(1.0-sigma*sigma); 
    73                 double arg1 = 0.5 * mudum * cos(0.5*M_PI*uu); 
    74                 double arg2 = 0.5 * mudum * a_scaled * sin(0.5*M_PI*uu); 
     73                double arg1 = 0.5 * mudum * cos(M_PI_2*uu); 
     74                double arg2 = 0.5 * mudum * a_scaled * sin(M_PI_2*uu); 
    7575            if(arg1==0.0) { 
    7676                tmp1 = 1.0; 
Note: See TracChangeset for help on using the changeset viewer.