8 static const double coeff[7] = {.28872209, .21705601, .063908389, -.012224924, .012901814, -.0089355058, -.015769145};
14 double x10, x11, x12, x13, x20, x21, x22;
55 x11 = fabs(
ycell) * 2. - 1.;
56 x12 = x11 * 2. * x11 - x10;
57 x13 = x11 * 2. * x12 - x11;
59 x21 = fabs(
zcell) * 2. - 1.;
60 x22 = x21 * 2. * x21 - x20;
61 ret_val = coeff[0] + coeff[1] * x11 + coeff[2] * x21 + coeff[3] * x12 * x22 + coeff[4] * x22 + coeff[5] * x13 +
69 static const double coeff[12] = {.002854441,
86 double x11, x12, x13, x14, x15, x16, x21, x22, x23, x24, x25, x26, x27, x28, x29, x210, x211, x212,
130 x11 = fabs(
ycell) * 2. - 1.;
137 x21 = fabs(
zcell) * 2. - 1.;
150 ret_val = coeff[0] + coeff[1] * x23 + coeff[2] * x24 + coeff[3] * x13 + coeff[4] * x11 * x21 + coeff[5] * x11 * x22 +
151 coeff[6] * x16 + coeff[7] * x213 + coeff[8] * x212 + coeff[9] * x21 + coeff[10] * x11 * x23 +
160 static const double coeff[20] = {42.981588, 25.732805, 26.539129, 16.719016, 10.862044, 7.4859085, 5.0353142,
161 3.3620548, 1.9057762, 2.2207695, -2.6787582, 1.2977292, -.8358091, 1.2452612,
162 .74813469, -.57581194, .32705275, -.85426489, -.55688158, -.38384903};
168 double x10, x11, x12, x13, x14, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29;
211 x11 = fabs(
ycell) * 2. - 1.;
212 x12 = x11 * 2. * x11 - x10;
213 x13 = x11 * 2. * x12 - x11;
214 x14 = x11 * 2. * x13 - x12;
216 x21 = fabs(
zcell) * 2. - 1.;
217 x22 = x21 * 2. * x21 - x20;
218 x23 = x21 * 2. * x22 - x21;
219 x24 = x21 * 2. * x23 - x22;
220 x25 = x21 * 2. * x24 - x23;
221 x26 = x21 * 2. * x25 - x24;
222 x27 = x21 * 2. * x26 - x25;
223 x28 = x21 * 2. * x27 - x26;
224 x29 = x21 * 2. * x28 - x27;
226 ret_val = coeff[0] + coeff[1] * x11 + coeff[2] * x21 + coeff[3] * x22 + coeff[4] * x23 + coeff[5] * x24 +
227 coeff[6] * x25 + coeff[7] * x26 + coeff[8] * x12 + coeff[9] * x27 + coeff[10] * x11 * x21 +
228 coeff[11] * x28 + coeff[12] * x13 + coeff[13] * x12 * x21 + coeff[14] * x29 + coeff[15] * x13 * x21 +
229 coeff[16] * x14 + coeff[17] * x11 * x22 + coeff[18] * x11 * x23 + coeff[19] * x11 * x24;
236 static const double coeff[19] = {6.2681223,
257 double x11, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x210, x211, x212;
300 x11 = fabs(
ycell) * 2. - 1.;
302 x21 = fabs(
zcell) * 2. - 1.;
303 x22 = x21 * 2. * x21 - x20;
304 x23 = x21 * 2. * x22 - x21;
305 x24 = x21 * 2. * x23 - x22;
306 x25 = x21 * 2. * x24 - x23;
307 x26 = x21 * 2. * x25 - x24;
308 x27 = x21 * 2. * x26 - x25;
309 x28 = x21 * 2. * x27 - x26;
310 x29 = x21 * 2. * x28 - x27;
311 x210 = x21 * 2. * x29 - x28;
312 x211 = x21 * 2. * x210 - x29;
313 x212 = x21 * 2. * x211 - x210;
315 return coeff[0] * x21 + coeff[1] + coeff[2] * x22 + coeff[3] * x23 + coeff[4] * x24 + coeff[5] * x25 +
316 coeff[6] * x26 + coeff[7] * x27 + coeff[8] * x28 + coeff[9] * x29 + coeff[10] * x11 + coeff[11] * x11 * x21 +
317 coeff[12] * x210 + coeff[13] * x11 * x22 + coeff[14] * x211 + coeff[15] * x212 + coeff[16] * x11 * x25 +
318 coeff[17] * x11 * x27 + coeff[18] * x11 * x26;