25 static double p1[5] = {0.4259894875,-0.1249762550, 0.03984243700, -0.006298287635, 0.001511162253};
26 static double q1[5] = {1.0 ,-0.3388260629, 0.09594393323, -0.01608042283, 0.003778942063};
28 static double p2[5] = {0.1788541609, 0.1173957403, 0.01488850518, -0.001394989411, 0.0001283617211};
29 static double q2[5] = {1.0 , 0.7428795082, 0.3153932961, 0.06694219548, 0.008790609714};
31 static double p3[5] = {0.1788544503, 0.09359161662,0.006325387654, 0.00006611667319,-0.000002031049101};
32 static double q3[5] = {1.0 , 0.6097809921, 0.2560616665, 0.04746722384, 0.006957301675};
34 static double p4[5] = {0.9874054407, 118.6723273, 849.2794360, -743.7792444, 427.0262186};
35 static double q4[5] = {1.0 , 106.8615961, 337.6496214, 2016.712389, 1597.063511};
37 static double p5[5] = {1.003675074, 167.5702434, 4789.711289, 21217.86767, -22324.94910};
38 static double q5[5] = {1.0 , 156.9424537, 3745.310488, 9834.698876, 66924.28357};
40 static double p6[5] = {1.000827619, 664.9143136, 62972.92665, 475554.6998, -5743609.109};
41 static double q6[5] = {1.0 , 651.4101098, 56974.73333, 165917.4725, -2815759.939};
43 static double a1[3] = {0.04166666667,-0.01996527778, 0.02709538966};
45 static double a2[2] = {-1.845568670,-4.284640743};
47 if (xi <= 0)
return 0;
48 double v = (
x - x0)/xi;
52 if (
u < 1
e-10)
return 0.0;
80 u = 1/(
v-
v*std::log(
v)/(
v+1));