10 #if !defined(GEOGRAPHICLIB_NORMALGRAVITY_HPP) 11 #define GEOGRAPHICLIB_NORMALGRAVITY_HPP 1 81 static const int maxit_ = 20;
84 real _a, _GM, _omega, _f, _J2, _omega2, _aomega2;
85 real _e2, _ep2, _b, _E, _U0, _gammae, _gammap, _Q0, _k, _fstar;
87 static real atanzz(real x,
bool alt) {
93 using std::sqrt;
using std::abs;
using std::atan;
using std::asin;
94 real z = sqrt(abs(x));
97 (!(x < 0) ?
Math::asinh(z) : asin(z)) / sqrt(abs(x) / (1 + x)) :
98 (!(x < 0) ? atan(z) :
Math::atanh(z)) / z);
105 real Jn(
int n)
const;
143 bool geometricp =
true);
293 bool Init()
const {
return _a > 0; }
323 {
return Init() ? ( n == 2 ? _J2 : Jn(n)) :
Math::NaN(); }
330 {
return Init() ? _omega :
Math::NaN(); }
344 {
return Init() ? _gammae :
Math::NaN(); }
351 {
return Init() ? _gammap :
Math::NaN(); }
358 {
return Init() ? _fstar :
Math::NaN(); }
423 #endif // GEOGRAPHICLIB_NORMALGRAVITY_HPP
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
The normal gravity of the earth.
Math::real Flattening() const
Mathematical functions needed by GeographicLib.
Math::real SurfacePotential() const
Math::real MassConstant() const
Math::real GravityFlattening() const
Namespace for GeographicLib.
Header for GeographicLib::Geocentric class.
Math::real EquatorialGravity() const
Model of the earth's gravity field.
Math::real AngularVelocity() const
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_DEPRECATED(msg)
Math::real DynamicalFormFactor(int n=2) const
Math::real PolarGravity() const
const Geocentric & Earth() const
Math::real MajorRadius() const