62 integer kc, np1, ns2, ier1, modn;
74 x_offset = 1 + x_dim1;
81 if ((i__1 = *
n - 2) < 0) {
83 }
else if (i__1 == 0) {
89 ssqrt3 = 1. / sqrt(3.);
90 xhold = ssqrt3 * (x[x_dim1 + 1] + x[(x_dim1 << 1) + 1]);
91 x[(x_dim1 << 1) + 1] = ssqrt3 * (x[x_dim1 + 1] - x[(x_dim1 << 1) + 1]);
92 x[x_dim1 + 1] = xhold;
98 for (k = 1; k <= i__1; ++k) {
100 t1 = x[k * x_dim1 + 1] - x[kc * x_dim1 + 1];
101 t2 = wsave[k] * (x[k * x_dim1 + 1] + x[kc * x_dim1 + 1]);
103 xh[kc + 1] = t2 - t1;
110 xh[ns2 + 2] = x[(ns2 + 1) * x_dim1 + 1] * 4.;
117 rfft1f_(&np1, &c__1, &xh[1], &lnxh, &wsave[ns2 + 1], &lnsv, work, &lnwk, &
131 x[x_dim1 + 1] = xh[1] * .5;
132 dsum = x[x_dim1 + 1];
134 for (i__ = 3; i__ <= i__1; i__ += 2) {
135 x[(i__ - 1) * x_dim1 + 1] = xh[i__] * .5;
136 dsum += xh[i__ - 1] * .5;
137 x[i__ * x_dim1 + 1] = dsum;
143 x[*
n * x_dim1 + 1] = xh[*
n + 1] * .5;