10#if !defined(GEOGRAPHICLIB_DAUXLATITUDE_HPP)
11#define GEOGRAPHICLIB_DAUXLATITUDE_HPP 1
129 const real c[],
int K);
145 using std::isnan;
using std::isinf;
146 return x == y ? base::sc(x) :
147 (isnan(x) || isnan(y) ? std::numeric_limits<real>::quiet_NaN() :
148 (isinf(x) || isinf(y) ? std::numeric_limits<real>::infinity() :
149 Dasinh(x, y) / Datan(x, y)));
166 using std::isnan;
using std::isinf;
using std::copysign;
167 return x == y ? base::sn(x) :
168 (isnan(x + y) ? x + y :
169 (isinf(x) ? copysign(
real(1), x) :
170 (isinf(y) ? copysign(
real(1), y) :
171 Dasinh(h(x), h(y)) * Dh(x, y) / Dasinh(x, y))));
180 static real h(
real x) {
return x * base::sn(x) / 2; }
186 using std::sin;
using std::cos;
187 real d = (x - y) / 2;
188 return cos((x + y) / 2) * (d != 0 ? sin(d) / d : 1);
191 real DE(
const AuxAngle& X,
const AuxAngle& Y)
const;
Header for the GeographicLib::AuxLatitude class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
An accurate representation of angles.
Conversions between auxiliary latitudes.
Divided differences of auxiliary latitudes.
static Math::real Dlam(real x, real y)
DAuxLatitude(real a, real f)
static Math::real Dp0Dpsi(real x, real y)
Namespace for GeographicLib.