Changeset 75898d4 in sasview
- Timestamp:
- Mar 22, 2016 6:54:13 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 197260f
- Parents:
- a8787f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/calculator/c_extensions/libfunc.c
r9e531f2 r75898d4 87 87 } 88 88 89 89 /* 90 90 double gamln(double xx) { 91 91 … … 103 103 return -tmp+log(2.5066282746310005*ser/x); 104 104 } 105 105 */ 106 106 // calculate magnetic sld and return total sld 107 107 // bn : contrast (not just sld of the layer) … … 241 241 **/ 242 242 243 243 /* 244 244 #define ITMAX 100 245 245 #define EPS 3.0e-7 … … 275 275 276 276 } 277 */ 277 278 278 279 /** … … 280 281 representation 281 282 **/ 282 283 /* 283 284 void gcf(float *gammcf, float a, float x, float *gln) { 284 285 int i; … … 306 307 return; 307 308 } 308 309 */ 309 310 310 311 /** 311 312 Represents incomplete error function, P(a,x) 312 313 **/ 314 /* 313 315 float gammp(float a, float x) { 314 316 float gamser,gammcf,gln; … … 322 324 } 323 325 } 324 326 */ 325 327 /** 326 328 Implementation of the error function, erf(x) 327 329 **/ 328 330 /* 329 331 float erff(float x) { 330 332 return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x); 331 333 } 332 334 */
Note: See TracChangeset
for help on using the changeset viewer.