Changeset cf85329 in sasmodels
- Timestamp:
- Feb 29, 2016 4:28:02 PM (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:
- c437dbb
- Parents:
- 73860b6
- Location:
- sasmodels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r73860b6 rcf85329 104 104 //inline double square(double x) { return pow(x,2.0); } 105 105 //inline double square(double x) { return pown(x,2); } 106 inline double square( x) { return x*x; }106 inline double square(double x) { return x*x; } 107 107 inline double cube(double x) { return x*x*x; } 108 inline double sinc(double x) { return x==0 ? 1.0 : sin(x)/x; } 108 109 109 110 -
sasmodels/models/core_shell_bicelle.c
re7678b2 rcf85329 28 28 return M_PI*(radius+rim_thickness)*(radius+rim_thickness)*(length+2*face_thickness); 29 29 } 30 31 inline double sinc(double x) {return x==0 ? 1.0 : sin(x)/x;}32 30 33 31 static double -
sasmodels/models/linear_pearls.c
r577912b rcf85329 29 29 // Return total volume 30 30 return num_pearls * pearl_vol;; 31 }32 33 // If used elsewhere - factor out to lib/34 static35 double sinc(double x)36 {37 if (x==0.0){38 return 1.0;39 }40 return sin(x)/x;41 31 } 42 32 -
sasmodels/models/pearl_necklace.c
rf12357f rcf85329 4 4 double form_volume(double radius, double edge_separation, 5 5 double string_thickness, double number_of_pearls); 6 double sinc(double x); 7 6 8 7 double Iq(double q, double radius, double edge_separation, 9 8 double string_thickness, double number_of_pearls, double sld, … … 124 123 } 125 124 126 double sinc(double x)127 {128 double num = sin(x);129 double denom = x;130 return num/denom;131 }132 133 134 125 double Iq(double q, double radius, double edge_separation, 135 126 double string_thickness, double number_of_pearls, double sld,
Note: See TracChangeset
for help on using the changeset viewer.