36 #include <grass/interpf.h>
51 double rfsta2 = fi * fi *
r / 4.;
53 static double c[4] = {8.5733287401, 18.0590169730, 8.6347608925,
55 static double b[4] = {9.5733223454, 25.6329561486, 21.0996530827,
57 double ce = 0.57721566;
59 static double u[10] = {
63 -.010416666666667e+00,
65 -2.31481481481482e-04,
67 -3.10019841269841e-06,
69 -2.75573192239859e-08};
85 x * (u[8] +
x * u[9])))))))));
92 ea = c[3] +
x * (c[2] +
x * (c[1] +
x * (c[0] +
x)));
93 eb =
b[3] +
x * (
b[2] +
x * (
b[1] +
x * (
b[0] +
x)));
94 e1 = (ea / eb) / (
x * exp(
x));
96 res = e1 + ce + log(
x);
116 double rfsta2 = fi * fi *
r / 4.;
117 double x, exm, oneme, hold;
118 double fsta2 = fi * fi / 2.;
122 *gd1 = 1. -
x / 2. +
x *
x / 6. -
x *
x *
x / 24.;
123 *gd2 = fsta2 * (-.5 +
x / 3. -
x *
x / 8. +
x *
x *
x / 30.);
130 hold =
x * exm - oneme;
131 *gd2 = (hold + hold) / (r2 *
x);
135 *gd2 = -2. / (
x * r2);
double IL_crst(double r, double fi)
int IL_crstg(double r, double fi, double *gd1, double *gd2)