Changeset dcef2ee in sasmodels


Ignore:
Timestamp:
Dec 8, 2015 1:21:02 PM (7 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:
9a66e65
Parents:
cf404cb
Message:

fix opencl build error for pearl necklace

File:
1 edited

Legend:

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

    rcf404cb rdcef2ee  
     1int factorial(int f); 
    12double Si(double x); 
     3 
    24// integral of sin(x)/x: approximated to w/i 1% 
    35double Si(double x) 
     
    3335 
    3436                power = pow(x,(2 * i + 1)); 
    35                 out += (double)pow(-1, i) * power / ((2.0 * (double)i + 1.0) * (double)factorial(2 * i + 1)); 
     37                out += pow(-1.0, i) * power / ((2.0 * (double)i + 1.0) * (double)factorial(2 * i + 1)); 
    3638 
    3739                //printf ("Si=%g %g %d\n", x, out, i); 
     
    4143} 
    4244 
    43 int factorial(int f); 
    4445int factorial(int f) 
    4546{ 
Note: See TracChangeset for help on using the changeset viewer.