Ignore:
Timestamp:
Oct 14, 2016 4:49:58 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:
14838a3
Parents:
a5b6997
Message:

use square and cube instead of pow()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/flexible_cylinder_elliptical.c

    r3a48772 r4962519  
    2121        double sn, cn; 
    2222        SINCOS(zi, sn, cn); 
    23         double arg = q*sqrt(a*a*sn*sn+b*b*cn*cn); 
    24         double yyy = pow((double)sas_J1c(arg),2); 
    25         yyy *= Gauss76Wt[i]; 
    26         summ += yyy; 
     23        double arg = q*sqrt(a*a*sn*sn + b*b*cn*cn); 
     24        double yyy = sas_J1c(arg); 
     25        summ += Gauss76Wt[i] * yyy * yyy; 
    2726    } 
    2827 
Note: See TracChangeset for help on using the changeset viewer.