ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since d17597f was
0164899a,
checked in by Jae Cho <jhjcho@…>, 14 years ago
|
new models and some bug fixes
|
-
Property mode set to
100644
|
File size:
790 bytes
|
Rev | Line | |
---|
[0164899a] | 1 | #if !defined(o_h) |
---|
| 2 | #define librefl_h |
---|
| 3 | |
---|
| 4 | typedef struct { |
---|
| 5 | double re; |
---|
| 6 | double im; |
---|
| 7 | } complex; |
---|
| 8 | |
---|
| 9 | typedef struct { |
---|
| 10 | complex a; |
---|
| 11 | complex b; |
---|
| 12 | complex c; |
---|
| 13 | complex d; |
---|
| 14 | } matrix; |
---|
| 15 | |
---|
| 16 | complex cassign(double real, double imag); |
---|
| 17 | |
---|
| 18 | complex cadd(complex x,complex y); |
---|
| 19 | |
---|
| 20 | complex rcmult(double x,complex y); |
---|
| 21 | |
---|
| 22 | complex csub(complex x,complex y); |
---|
| 23 | |
---|
| 24 | complex cmult(complex x,complex y); |
---|
| 25 | |
---|
| 26 | complex cdiv(complex x,complex y); |
---|
| 27 | |
---|
| 28 | complex cexp(complex b); |
---|
| 29 | |
---|
| 30 | complex csqrt(complex z); |
---|
| 31 | |
---|
| 32 | complex ccos(complex b); |
---|
| 33 | |
---|
| 34 | double intersldfunc(int fun_type, double n_sub, double i, double nu, double sld_l, double sld_r); |
---|
| 35 | double interfunc(int fun_type, double n_sub, double i, double sld_l, double sld_r); |
---|
| 36 | double linePq(int fun_type, double thick, double sld_in, double sld_out,double r, double q); |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.