Changeset a776125 in sasmodels


Ignore:
Timestamp:
Mar 19, 2016 9:45:45 AM (9 years ago)
Author:
wojciech
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:
d7baa51
Parents:
70534131
Message:

Bessel functions named changed

Location:
sasmodels/models/lib
Files:
3 moved

Legend:

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

    r0b05c24 ra776125  
    177177 }; 
    178178 
    179 double J0(double x) { 
     179double sas_J0(double x) { 
    180180 
    181181//Cephes single precission 
  • sasmodels/models/lib/sas_J1.c

    r0b05c24 ra776125  
    135135    }; 
    136136 
    137 double J1(double x) { 
     137double sas_J1(double x) { 
    138138 
    139139//Cephes double pression function 
  • sasmodels/models/lib/sas_JN.c

    rbfef528 ra776125  
    4848*/ 
    4949 
    50 double jn( int n, double x ); 
     50double sas_JN( int n, double x ); 
    5151 
    52 double jn( int n, double x ) { 
     52double sas_JN( int n, double x ) { 
    5353 
    5454    const double MACHEP = 1.11022302462515654042E-16; 
     
    7373 
    7474    if( n == 0 ) 
    75             return( sign * j0(x) ); 
     75            return( sign * sas_J0(x) ); 
    7676    if( n == 1 ) 
    77             return( sign * j1(x) ); 
     77            return( sign * sas_J1(x) ); 
    7878    if( n == 2 ) 
    79             return( sign * (2.0 * j1(x) / x  -  j0(x)) ); 
     79            return( sign * (2.0 * sas_J1(x) / x  -  sas_J0(x)) ); 
    8080 
    8181    if( x < MACHEP ) 
     
    116116 
    117117        if( fabs(pk) > fabs(pkm1) ) 
    118                 ans = j1(x)/pk; 
     118                ans = sas_J1(x)/pk; 
    119119        else 
    120                 ans = j0(x)/pkm1; 
     120                ans = sas_J0(x)/pkm1; 
    121121 
    122122            return( sign * ans ); 
     
    144144 
    145145        if( r > ans )  /* if( fabs(pk) > fabs(pkm1) ) */ 
    146                 ans = sign * j1(x)/pk; 
     146                ans = sign * sas_J1(x)/pk; 
    147147        else 
    148                 ans = sign * j0(x)/pkm1; 
     148                ans = sign * sas_J0(x)/pkm1; 
    149149        return( ans ); 
    150150    #endif 
Note: See TracChangeset for help on using the changeset viewer.