44 double c1, c2, zs, ny_fac, neg_ny_fac, zm, zp, pm, pp, term, sum, ze, za, mu, pa;
50 c1 = PI / 2.0 / sin(PI * NY);
53 ny_fac = NY * GAMMA_OF_NY;
54 neg_ny_fac = c2 / GAMMA_OF_NY;
55 e2 = pow(z / 2.0, NY);
56 zm = 1 / e2 / neg_ny_fac;
60 sum = term = c1 * (pm * zm - pp * zp);
63 while (fabs(term) > EPS1 * sum) {
65 pm = pm * zs / (k * (k - NY));
66 pp = pp * zs / (k * (k + NY));
67 term = c1 * (pm * zm - pp * zp);
72 ze = sqrt(PI / 2.0 / z) * exp(-z);
80 while (fabs(term) > EPS2 * sum) {
82 pa = pa * za * (mu - (2 * k - 1) * (2 * k - 1)) / k;