Changeset d53d3cd in sasmodels


Ignore:
Timestamp:
Dec 23, 2015 10:19:57 AM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
ce166d3
Parents:
07e72e6
Message:

floating point constants need to include '.' to be recognized and converted

Location:
sasmodels/models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/ellipsoid.c

    ra5899c8 rd53d3cd  
    1414    //const double f = ( u==0.0 ? 1.0 : 3.0*(sn-u*cn)/(u*u*u) ); 
    1515    const double usq = u*u; 
    16     const double f = (u < 1e-1) 
     16    const double f = (u < 1.e-1) 
    1717        ? 1.0 + usq*(-3./30. + usq*(3./840. + usq*(-3./45360.)))// + qrsq*(3./3991680.)))) 
    1818        : 3.0*(sn/u - cn)/usq; 
  • sasmodels/models/sphere.py

    reb69cce rd53d3cd  
    9898    // requires the first 3 terms.  Double precision requires the 4th term. 
    9999    // The fifth term is not needed, and is commented out below. 
    100     const double bes = (qr < 1e-1) 
     100    const double bes = (qr < 1.e-1) 
    101101        ? 1.0 + qrsq*(-3./30. + qrsq*(3./840. + qrsq*(-3./45360.)))// + qrsq*(3./3991680.)))) 
    102102        : 3.0*(sn/qr - cn)/qrsq; 
  • sasmodels/models/triaxial_ellipsoid.c

    rc138211 rd53d3cd  
    3939            //const double fq = ( t==0.0 ? 1.0 : 3.0*(st-t*ct)/(t*t*t) ); 
    4040            const double tsq = t*t; 
    41             const double fq = (t < 1e-1) 
     41            const double fq = (t < 1.e-1) 
    4242                ? 1.0 + tsq*(-3./30. + tsq*(3./840. + tsq*(-3./45360.)))// + tsq*(3./3991680.)))) 
    4343                : 3.0*(st/t - ct)/tsq; 
Note: See TracChangeset for help on using the changeset viewer.