Changeset a776125 in sasmodels
- Timestamp:
- Mar 19, 2016 9:45:45 AM (9 years ago)
- 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
- Location:
- sasmodels/models/lib
- Files:
-
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lib/sas_J0.c
r0b05c24 ra776125 177 177 }; 178 178 179 double J0(double x) {179 double sas_J0(double x) { 180 180 181 181 //Cephes single precission -
sasmodels/models/lib/sas_J1.c
r0b05c24 ra776125 135 135 }; 136 136 137 double J1(double x) {137 double sas_J1(double x) { 138 138 139 139 //Cephes double pression function -
sasmodels/models/lib/sas_JN.c
rbfef528 ra776125 48 48 */ 49 49 50 double jn( int n, double x );50 double sas_JN( int n, double x ); 51 51 52 double jn( int n, double x ) {52 double sas_JN( int n, double x ) { 53 53 54 54 const double MACHEP = 1.11022302462515654042E-16; … … 73 73 74 74 if( n == 0 ) 75 return( sign * j0(x) );75 return( sign * sas_J0(x) ); 76 76 if( n == 1 ) 77 return( sign * j1(x) );77 return( sign * sas_J1(x) ); 78 78 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)) ); 80 80 81 81 if( x < MACHEP ) … … 116 116 117 117 if( fabs(pk) > fabs(pkm1) ) 118 ans = j1(x)/pk;118 ans = sas_J1(x)/pk; 119 119 else 120 ans = j0(x)/pkm1;120 ans = sas_J0(x)/pkm1; 121 121 122 122 return( sign * ans ); … … 144 144 145 145 if( r > ans ) /* if( fabs(pk) > fabs(pkm1) ) */ 146 ans = sign * j1(x)/pk;146 ans = sign * sas_J1(x)/pk; 147 147 else 148 ans = sign * j0(x)/pkm1;148 ans = sign * sas_J0(x)/pkm1; 149 149 return( ans ); 150 150 #endif
Note: See TracChangeset
for help on using the changeset viewer.