Compute the rectifying radius = quarter meridian / (pi/2 * a). The accuracy of this series is the same as those used for the computation of the auxiliary latitudes.
| 413 | // of this series is the same as those used for the computation of the |
| 414 | // auxiliary latitudes. |
| 415 | double pj_rectifying_radius(double n) { |
| 416 | // Expansion of (quarter meridian) / ((a+b)/2 * pi/2) as series in n^2; |
| 417 | // these coefficients are ( (2*k - 3)!! / (2*k)!! )^2 for k = 0..3 |
| 418 | static const double coeff_rad[] = {1, 1.0 / 4, 1.0 / 64, 1.0 / 256}; |
| 419 | return pj_polyval(n * n, coeff_rad, 3) / (1 + n); |
| 420 | } |
no test coverage detected