Changeset 541e7c9 in sasmodels for sasmodels/models/lib
- Timestamp:
- Apr 6, 2016 7:27:46 PM (8 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:
- 4937980
- Parents:
- ee8f734 (diff), 0278e3f (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. - Location:
- sasmodels/models/lib
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lib/Si.c
rba32cdd r0278e3f 1 1 // integral of sin(x)/x Taylor series approximated to w/i 0.1% 2 2 double Si(double x); 3 4 3 double Si(double x) 5 4 { -
sasmodels/models/lib/polevl.c
rba32cdd r0278e3f 52 52 53 53 double polevl( double x, constant double *coef, int N ); 54 double p1evl( double x, constant double *coef, int N );55 56 57 54 double polevl( double x, constant double *coef, int N ) 58 55 { … … 66 63 } 67 64 68 return ans 65 return ans; 69 66 } 70 67 … … 75 72 */ 76 73 74 double p1evl( double x, constant double *coef, int N ); 77 75 double p1evl( double x, constant double *coef, int N ) 78 76 { … … 85 83 } 86 84 87 return ( ans );85 return ans; 88 86 } -
sasmodels/models/lib/sas_J0.c
rba32cdd r0278e3f 49 49 Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 50 50 */ 51 52 double sas_J0(double x);53 51 54 52 /* Note: all coefficients satisfy the relative error criterion … … 179 177 }; 180 178 179 double sas_J0(double x); 181 180 double sas_J0(double x) 182 181 { -
sasmodels/models/lib/sas_J1.c
rba32cdd r0278e3f 39 39 Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier 40 40 */ 41 double sas_J1(double x);42 double sas_J1c(double x);43 41 44 42 constant double RPJ1[8] = { … … 137 135 }; 138 136 137 double sas_J1(double x); 139 138 double sas_J1(double x) 140 139 { … … 209 208 210 209 //Finally J1c function that equals 2*J1(x)/x 211 double sas_J1c(double x) { 210 double sas_J1c(double x); 211 double sas_J1c(double x) 212 { 212 213 return (x != 0.0 ) ? 2.0*sas_J1(x)/x : 1.0; 213 214 } -
sasmodels/models/lib/sas_JN.c
rba32cdd r541e7c9 47 47 Copyright 1984, 1987, 2000 by Stephen L. Moshier 48 48 */ 49 49 50 double sas_JN( int n, double x ); 50 51 51 double sas_JN( int n, double x ) 52 { 52 double sas_JN( int n, double x ) { 53 53 54 54 const double MACHEP = 1.11022302462515654042E-16; -
sasmodels/models/lib/sph_j1c.c
re6f1410 rba32cdd 7 7 * using double precision that are the source. 8 8 */ 9 double sph_j1c(double q); 9 10 10 11 // The choice of the number of terms in the series and the cutoff value for … … 43 44 #endif 44 45 45 double sph_j1c(double q);46 46 double sph_j1c(double q) 47 47 { -
sasmodels/models/lib/sphere_form.c
rad90df9 rba32cdd 1 inline double 2 sphere_volume(double radius) 1 double sphere_volume(double radius); 2 double sphere_form(double q, double radius, double sld, double solvent_sld); 3 4 double sphere_volume(double radius) 3 5 { 4 6 return M_4PI_3*cube(radius); 5 7 } 6 8 7 inline double 8 sphere_form(double q, double radius, double sld, double solvent_sld) 9 double sphere_form(double q, double radius, double sld, double solvent_sld) 9 10 { 10 11 const double fq = sphere_volume(radius) * sph_j1c(q*radius); -
sasmodels/models/lib/wrc_cyl.c
re7678b2 rba32cdd 2 2 Functions for WRC implementation of flexible cylinders 3 3 */ 4 double Sk_WR(double q, double L, double b); 5 6 4 7 static double 5 8 AlphaSquare(double x) … … 363 366 } 364 367 365 double Sk_WR(double q, double L, double b);366 368 double Sk_WR(double q, double L, double b) 367 369 {
Note: See TracChangeset
for help on using the changeset viewer.