Changeset eb2946f in sasmodels for sasmodels/models/lib/sas_3j1x_x.c


Ignore:
Timestamp:
May 18, 2017 5:10:29 PM (7 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:
1b85b55
Parents:
452b168
Message:

improve precision of sasmodels special functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/sas_3j1x_x.c

    r473a9f1 reb2946f  
    4646double sas_3j1x_x(double q) 
    4747{ 
    48     if (q < SPH_J1C_CUTOFF) { 
     48    // 2017-05-18 PAK - support negative q 
     49    if (fabs(q) < SPH_J1C_CUTOFF) { 
    4950        const double q2 = q*q; 
    5051        return (1.0 + q2*(-3./30. + q2*(3./840. + q2*(-3./45360.))));// + q2*(3./3991680.))))); 
Note: See TracChangeset for help on using the changeset viewer.