Changeset c3ccaec in sasmodels for sasmodels/models/linear_pearls.c


Ignore:
Timestamp:
Feb 7, 2017 2:10:50 PM (7 years ago)
Author:
GitHub <noreply@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a90aa1c
Parents:
aa107ef (diff), fe8ff99 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (02/07/17 14:10:50)
git-committer:
GitHub <noreply@…> (02/07/17 14:10:50)
Message:

Merge branch 'master' into ticket-815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/linear_pearls.c

    r4367142 rc3ccaec  
    4444 
    4545    //sine functions of a pearl 
    46     double psi = sph_j1c(q * radius); 
     46    double psi = sas_3j1x_x(q * radius); 
    4747 
    4848    // N pearls interaction terms  
    4949    double structure_factor = (double)num_pearls; 
    5050    for(int num=1; num<num_pearls; num++) { 
    51         structure_factor += 2.0*(num_pearls-num)*sinc(q*separation*num); 
     51        structure_factor += 2.0*(num_pearls-num)*sas_sinx_x(q*separation*num); 
    5252    } 
    5353    // form factor for num_pearls 
Note: See TracChangeset for help on using the changeset viewer.