Calculate the real values of Lambert’s W function W(x)
double lambertW(const double dP, int branch, int offset, int* nFail = NULL)
Returns the real values of Lambert’s W function W(x)
EX1
void lambertW_ex1() { double x[]= {0.25, 0.5, 0.75}; int branch = 0; for(int ii = 0; ii<3; ii++) printf("%f %d %d: %f\n", x[ii], branch, ii%2, lambertW(x[ii], branch, ii%2)); }
chi2cdf
origin.h