14 # pragma warning (disable: 4127) 22 return es >
T(0) ? es * atanh(es * x) : -es *
atan(es * x);
26 T tau1 = hypot(
T(1), tau),
27 sig =
sinh( eatanhe(tau / tau1, es ) );
28 return hypot(
T(1), sig) * tau - sig * tau1;
32 static const int numit = 5;
34 T e2m =
T(1) - sq(es),
43 stol = tol *
max(
T(1),
abs(taup));
46 T taupa = taupf(tau, es),
47 dtau = (taup - taupa) * (1 + e2m * sq(tau)) /
48 ( e2m * hypot(
T(1), tau) * hypot(
T(1), taupa) );
50 if (!(
abs(dtau) >= stol))
EIGEN_DEVICE_FUNC const SinhReturnType sinh() const
EIGEN_DEVICE_FUNC const AtanReturnType atan() const
Header for GeographicLib::Math class.
Eigen::Triplet< double > T
Namespace for GeographicLib.
EigenSolver< MatrixXf > es
Jet< T, N > sqrt(const Jet< T, N > &f)
static T tauf(T taup, T es)
static T eatanhe(T x, T es)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
static T taupf(T tau, T es)
#define GEOGRAPHICLIB_PANIC