Skip to content
Snippets Groups Projects
Commit 45c1f37d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

+ abs_wofz, arg_wofz

parent 70ed5c6b
No related branches found
No related tags found
No related merge requests found
Pipeline #160695 failed
...@@ -641,6 +641,16 @@ double func_im_wofz(double x, double y) ...@@ -641,6 +641,16 @@ double func_im_wofz(double x, double y)
return cimag(w_of_z({x, y})); return cimag(w_of_z({x, y}));
} }
double func_abs_wofz(double x, double y)
{
return cabs(w_of_z({x, y}));
}
double func_arg_wofz(double x, double y)
{
return atan2(cimag(w_of_z({x, y})), creal(w_of_z({x, y})));
}
//************************************************************************************************** //**************************************************************************************************
//* Functions of three arguments //* Functions of three arguments
//************************************************************************************************** //**************************************************************************************************
...@@ -1079,10 +1089,14 @@ void fbase_initialize() ...@@ -1079,10 +1089,14 @@ void fbase_initialize()
G->register_fct_d_dd(m, func_heat_sphere); G->register_fct_d_dd(m, func_heat_sphere);
m = {"voigt_hwhm", 3, "(sigma,gamma): hwhm of voigt(x,sigma,gamma)"}; m = {"voigt_hwhm", 3, "(sigma,gamma): hwhm of voigt(x,sigma,gamma)"};
G->register_fct_d_dd(m, func_voigt_hwhm); G->register_fct_d_dd(m, func_voigt_hwhm);
m = {"im_wofz", 3, "(x,y): imaginary part of Faddeeva's function"};
G->register_fct_d_dd(m, func_im_wofz);
m = {"re_wofz", 3, "(x,y): real part of Faddeeva's function"}; m = {"re_wofz", 3, "(x,y): real part of Faddeeva's function"};
G->register_fct_d_dd(m, func_re_wofz); G->register_fct_d_dd(m, func_re_wofz);
m = {"im_wofz", 3, "(x,y): imaginary part of Faddeeva's function"};
G->register_fct_d_dd(m, func_im_wofz);
m = {"abs_wofz", 3, "(x,y): absolute valueof Faddeeva's function"};
G->register_fct_d_dd(m, func_abs_wofz);
m = {"arg_wofz", 3, "(x,y): phase of Faddeeva's function"};
G->register_fct_d_dd(m, func_arg_wofz);
// f(3 args) // f(3 args)
m = {"rehavneg", 3, "(x,y,z): real part of the Havriliak-Negami function"}; m = {"rehavneg", 3, "(x,y,z): real part of the Havriliak-Negami function"};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment