Changeset cf85329 in sasmodels for sasmodels/kernel_template.c


Ignore:
Timestamp:
Feb 29, 2016 4:28:02 PM (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:
c437dbb
Parents:
73860b6
Message:

add sinc() function to kernel template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    r73860b6 rcf85329  
    104104//inline double square(double x) { return pow(x,2.0); } 
    105105//inline double square(double x) { return pown(x,2); } 
    106 inline double square(x) { return x*x; } 
     106inline double square(double x) { return x*x; } 
    107107inline double cube(double x) { return x*x*x; } 
     108inline double sinc(double x) { return x==0 ? 1.0 : sin(x)/x; } 
    108109 
    109110 
Note: See TracChangeset for help on using the changeset viewer.