Go to the documentation of this file.
34 #define MAXLONG 2147483647.
35 #define DBLLONG 4.61168601e18
87 con = eccent * sinphi;
88 return (( 1.0- eccent * eccent) * (sinphi /(1.0 - con * con) -
89 (.5/eccent) * log((1.0 - con)/(1.0 + con))));
114 phi =
asinz(.5 * qs);
117 eccnts = eccent * eccent;
118 for (
i = 1;
i <= 25;
i++)
120 sincos(phi,&sinpi,&cospi);
121 con = eccent * sinpi;
122 com = 1.0 - con * con;
123 dphi = .5 * com * com / cospi * (qs / (1.0 - eccnts) - sinpi / com +
124 .5 / eccent * log ((1.0 - con) / (1.0 + con)));
126 if (
fabs(dphi) <= 1
e-7)
152 for (
i = 0;
i < 15;
i++)
154 dphi = (
ml + e1 * sin(2.0 * phi) - e2 * sin(4.0 * phi) + e3 *
155 sin(6.0 * phi)) / e0 - phi;
157 if (
fabs(dphi) <= .0000000001)
181 else if (((
long)
fabs(
x /
PI)) < 2)
double phi3z(double ml, double e0, double e1, double e2, double e3, long *flag)
#define GCTP_PRINT_ERROR(format,...)
int gctp_get_sign(double x)
double phi1z(double eccent, double qs, long *flag)
double adjust_lon(double x)
double qsfnz(double eccent, double sinphi)