GeographicLib
1.43
|
Mathematical functions needed by GeographicLib. More...
#include <GeographicLib/Math.hpp>
Public Types | |
typedef double | extended |
typedef double | real |
Static Public Member Functions | |
static int | digits () |
static int | set_digits (int ndigits) |
static int | digits10 () |
static int | extra_digits () |
template<typename T > | |
static T | pi () |
static real | pi () |
template<typename T > | |
static T | degree () |
static real | degree () |
template<typename T > | |
static T | sq (T x) |
template<typename T > | |
static T | hypot (T x, T y) |
template<typename T > | |
static T | expm1 (T x) |
template<typename T > | |
static T | log1p (T x) |
template<typename T > | |
static T | asinh (T x) |
template<typename T > | |
static T | atanh (T x) |
template<typename T > | |
static T | cbrt (T x) |
template<typename T > | |
static T | fma (T x, T y, T z) |
template<typename T > | |
static void | norm (T &x, T &y) |
template<typename T > | |
static T | sum (T u, T v, T &t) |
template<typename T > | |
static T | polyval (int N, const T p[], T x) |
template<typename T > | |
static T | AngNormalize (T x) |
template<typename T > | |
static T | AngNormalize2 (T x) |
template<typename T > | |
static T | AngDiff (T x, T y) |
template<typename T > | |
static T | AngRound (T x) |
template<typename T > | |
static T | tand (T x) |
template<typename T > | |
static T | atand (T x) |
template<typename T > | |
static T | atan2d (T y, T x) |
template<typename T > | |
static T | eatanhe (T x, T es) |
template<typename T > | |
static T | taupf (T tau, T es) |
template<typename T > | |
static T | tauf (T taup, T es) |
template<typename T > | |
static bool | isfinite (T x) |
template<typename T > | |
static T | NaN () |
static real | NaN () |
template<typename T > | |
static bool | isnan (T x) |
template<typename T > | |
static T | infinity () |
static real | infinity () |
template<typename T > | |
static T | swab (T x) |
Static Public Attributes | |
static const int | extradigits |
static const bool | bigendian = GEOGRAPHICLIB_WORDS_BIGENDIAN |
Mathematical functions needed by GeographicLib.
Define mathematical functions in order to localize system dependencies and to provide generic versions of the functions. In addition define a real type to be used by GeographicLib.
Example of use:
typedef double GeographicLib::Math::extended |
typedef double GeographicLib::Math::real |
|
inlinestatic |
|
inlinestatic |
Set the binary precision of a real number.
[in] | ndigits | the number of bits of precision. |
This only has an effect when GEOGRAPHICLIB_PRECISION == 5.
Definition at line 161 of file Math.hpp.
Referenced by GeographicLib::Utility::set_digits().
|
inlinestatic |
|
inlinestatic |
Number of additional decimal digits of precision for real relative to double (0 for float).
Definition at line 185 of file Math.hpp.
Referenced by GeographicLib::GeoCoords::DMSRepresentation(), GeographicLib::DMS::Encode(), GeographicLib::GeoCoords::GeoRepresentation(), and main().
|
inlinestatic |
T | the type of the returned value. |
Definition at line 214 of file Math.hpp.
Referenced by GeographicLib::Ellipsoid::Area(), GeographicLib::EllipticFunction::D(), GeographicLib::EllipticFunction::deltaD(), GeographicLib::EllipticFunction::deltaE(), GeographicLib::EllipticFunction::deltaEinv(), GeographicLib::EllipticFunction::deltaF(), GeographicLib::EllipticFunction::deltaG(), GeographicLib::EllipticFunction::deltaH(), GeographicLib::EllipticFunction::deltaPi(), GeographicLib::EllipticFunction::E(), GeographicLib::EllipticFunction::Einv(), GeographicLib::GeodesicExact::EllipsoidArea(), GeographicLib::Geodesic::EllipsoidArea(), GeographicLib::EllipticFunction::F(), GeographicLib::TransverseMercator::Forward(), GeographicLib::EllipticFunction::G(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GeodesicLineExact(), GeographicLib::EllipticFunction::H(), main(), GeographicLib::EllipticFunction::Pi(), GeographicLib::EllipticFunction::Reset(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::EllipticFunction::RF(), GeographicLib::EllipticFunction::RG(), and GeographicLib::Ellipsoid::Volume().
|
inlinestatic |
A synonym for pi<real>().
|
inlinestatic |
T | the type of the returned value. |
Definition at line 228 of file Math.hpp.
Referenced by GeographicLib::AlbersEqualArea::AlbersEqualArea(), GeographicLib::Constants::arcminute(), GeographicLib::Constants::arcsecond(), atan2d(), atand(), GeographicLib::Constants::degree(), GeographicLib::EllipticFunction::Ed(), GeographicLib::GeodesicLineExact::EquatorialArc(), GeographicLib::GeodesicLine::EquatorialArc(), GeographicLib::GeodesicLineExact::EquatorialAzimuth(), GeographicLib::GeodesicLine::EquatorialAzimuth(), GeographicLib::MagneticModel::FieldComponents(), GeographicLib::AzimuthalEquidistant::Forward(), GeographicLib::PolarStereographic::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::CassiniSoldner::Forward(), GeographicLib::Gnomonic::Forward(), GeographicLib::TransverseMercatorExact::Forward(), GeographicLib::AlbersEqualArea::Forward(), GeographicLib::LambertConformalConic::Forward(), GeographicLib::Rhumb::GenInverse(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::RhumbLine::GenPosition(), GeographicLib::GeodesicLine::GeodesicLine(), GeographicLib::GeodesicLineExact::GeodesicLineExact(), GeographicLib::Ellipsoid::InverseIsometricLatitude(), GeographicLib::Ellipsoid::InverseRectifyingLatitude(), GeographicLib::Ellipsoid::IsometricLatitude(), GeographicLib::LambertConformalConic::LambertConformalConic(), GeographicLib::Ellipsoid::MeridionalCurvatureRadius(), GeographicLib::Ellipsoid::NormalCurvatureRadius(), GeographicLib::LocalCartesian::Reset(), GeographicLib::CassiniSoldner::Reset(), GeographicLib::PolarStereographic::Reverse(), GeographicLib::AzimuthalEquidistant::Reverse(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::Gnomonic::Reverse(), GeographicLib::TransverseMercatorExact::Reverse(), GeographicLib::AlbersEqualArea::Reverse(), GeographicLib::LambertConformalConic::Reverse(), GeographicLib::GravityCircle::SphericalAnomaly(), GeographicLib::GravityModel::SphericalAnomaly(), GeographicLib::NormalGravity::SurfaceGravity(), tand(), GeographicLib::Ellipsoid::TransverseCurvatureRadius(), GeographicLib::JacobiConformal::x(), and GeographicLib::JacobiConformal::y().
|
inlinestatic |
A synonym for degree<real>().
|
inlinestatic |
Square a number.
T | the type of the argument and the returned value. |
[in] | x |
Definition at line 244 of file Math.hpp.
Referenced by GeographicLib::Ellipsoid::Area(), atand(), GeographicLib::SphericalEngine::Circle(), GeographicLib::MagneticModel::FieldComponents(), GeographicLib::NormalGravity::FlatteningToJ2(), GeographicLib::Ellipsoid::FlatteningToSecondEccentricitySq(), GeographicLib::Ellipsoid::FlatteningToThirdEccentricitySq(), GeographicLib::PolarStereographic::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::AlbersEqualArea::Forward(), GeographicLib::LambertConformalConic::Forward(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::GeodesicLine::GeodesicLine(), GeographicLib::GeodesicLineExact::GeodesicLineExact(), GeographicLib::GravityModel::GravityModel(), GeographicLib::NormalGravity::J2ToFlattening(), GeographicLib::Ellipsoid::MeridionalCurvatureRadius(), GeographicLib::Ellipsoid::NormalCurvatureRadius(), GeographicLib::NormalGravity::Phi(), GeographicLib::EllipticFunction::Reset(), GeographicLib::PolarStereographic::Reverse(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::AlbersEqualArea::Reverse(), GeographicLib::LambertConformalConic::Reverse(), GeographicLib::EllipticFunction::RG(), GeographicLib::EllipticFunction::RJ(), GeographicLib::AlbersEqualArea::SetScale(), GeographicLib::NormalGravity::SurfaceGravity(), tand(), GeographicLib::Ellipsoid::TransverseCurvatureRadius(), GeographicLib::TransverseMercator::TransverseMercator(), GeographicLib::NormalGravity::V0(), GeographicLib::SphericalEngine::Value(), GeographicLib::Ellipsoid::Volume(), GeographicLib::JacobiConformal::x(), and GeographicLib::JacobiConformal::y().
|
inlinestatic |
The hypotenuse function avoiding underflow and overflow.
T | the type of the arguments and the returned value. |
[in] | x | |
[in] | y |
Definition at line 255 of file Math.hpp.
Referenced by GeographicLib::SphericalEngine::Circle(), GeographicLib::GravityModel::Circle(), GeographicLib::Ellipsoid::CircleHeight(), GeographicLib::Ellipsoid::CircleRadius(), GeographicLib::MagneticModel::FieldComponents(), GeographicLib::PolarStereographic::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::Rhumb::GenInverse(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::GeodesicLine::GeodesicLine(), GeographicLib::GeodesicLineExact::GeodesicLineExact(), GeographicLib::GravityModel::GeoidHeight(), GeographicLib::PolarStereographic::Reverse(), GeographicLib::AzimuthalEquidistant::Reverse(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::Gnomonic::Reverse(), GeographicLib::AlbersEqualArea::Reverse(), GeographicLib::LambertConformalConic::Reverse(), GeographicLib::GravityModel::SphericalAnomaly(), GeographicLib::NormalGravity::V0(), and GeographicLib::SphericalEngine::Value().
|
inlinestatic |
exp(x) − 1 accurate near x = 0.
T | the type of the argument and the returned value. |
[in] | x |
Definition at line 277 of file Math.hpp.
References GEOGRAPHICLIB_VOLATILE.
|
inlinestatic |
log(1 + x) accurate near x = 0.
T | the type of the argument and the returned value. |
[in] | x |
Definition at line 300 of file Math.hpp.
References GEOGRAPHICLIB_VOLATILE.
Referenced by GeographicLib::LambertConformalConic::Reverse().
|
inlinestatic |
The inverse hyperbolic sine function.
T | the type of the argument and the returned value. |
[in] | x |
Definition at line 323 of file Math.hpp.
Referenced by GeographicLib::TransverseMercator::Forward(), GeographicLib::LambertConformalConic::Forward(), GeographicLib::Ellipsoid::IsometricLatitude(), and GeographicLib::EllipticFunction::RC().
|
inlinestatic |
The inverse hyperbolic tangent function.
T | the type of the argument and the returned value. |
[in] | x |
Definition at line 340 of file Math.hpp.
Referenced by GeographicLib::Ellipsoid::Area().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Normalize a two-vector.
T | the type of the argument and the returned value. |
[in,out] | x | on output set to x/hypot(x, y). |
[in,out] | y | on output set to y/hypot(x, y). |
Definition at line 392 of file Math.hpp.
Referenced by GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLine::GeodesicLine(), GeographicLib::GeodesicLineExact::GeodesicLineExact(), and GeographicLib::CassiniSoldner::Reset().
|
inlinestatic |
The error-free sum of two numbers.
T | the type of the argument and the returned value. |
[in] | u | |
[in] | v | |
[out] | t | the exact error given by (u + v) - s. |
See D. E. Knuth, TAOCP, Vol 2, 4.2.2, Theorem B. (Note that t can be the same as one of the first two arguments.)
Definition at line 407 of file Math.hpp.
References GEOGRAPHICLIB_VOLATILE.
|
inlinestatic |
Evaluate a polynomial.
T | the type of the arguments and returned value. |
[in] | N | the order of the polynomial. |
[in] | p | the coefficient array (of size N + 1). |
[in] | x | the variable. |
Evaluate y = ∑n=0..N pn xN−n. Return 0 if N < 0. Return p0, if N = 0 (even if x is infinite or a nan). The evaluation uses Horner's method.
Definition at line 433 of file Math.hpp.
Referenced by GeographicLib::Rhumb::Rhumb(), and GeographicLib::TransverseMercator::TransverseMercator().
|
inlinestatic |
Normalize an angle (restricted input range).
T | the type of the argument and returned value. |
[in] | x | the angle in degrees. |
x must lie in [−540°, 540°).
Definition at line 445 of file Math.hpp.
Referenced by GeographicLib::PolygonAreaT< GeodType >::AddPoint(), GeographicLib::Geoid::CacheArea(), GeographicLib::DMS::DecodeAzimuth(), GeographicLib::PolarStereographic::Forward(), GeographicLib::Geohash::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::CassiniSoldner::Forward(), GeographicLib::TransverseMercatorExact::Forward(), GeographicLib::AlbersEqualArea::Forward(), GeographicLib::LambertConformalConic::Forward(), GeographicLib::Rhumb::GenInverse(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::RhumbLine::GenPosition(), main(), GeographicLib::LocalCartesian::Reset(), GeographicLib::GeoCoords::Reset(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::TransverseMercatorExact::Reverse(), GeographicLib::AlbersEqualArea::Reverse(), and GeographicLib::LambertConformalConic::Reverse().
|
inlinestatic |
Normalize an arbitrary angle.
T | the type of the argument and returned value. |
[in] | x | the angle in degrees. |
The range of x is unrestricted.
Definition at line 457 of file Math.hpp.
Referenced by GeographicLib::PolygonAreaT< GeodType >::AddEdge(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::RhumbLine::GenPosition(), and GeographicLib::PolygonAreaT< GeodType >::TestEdge().
|
inlinestatic |
Difference of two angles reduced to [−180°, 180°]
T | the type of the arguments and returned value. |
[in] | x | the first angle in degrees. |
[in] | y | the second angle in degrees. |
x and y must both lie in [−180°, 180°]. The result is equivalent to computing the difference exactly, reducing it to (−180°, 180°] and rounding the result. Note that this prescription allows −180° to be returned (e.g., if x is tiny and negative and y = 180°).
Definition at line 475 of file Math.hpp.
Referenced by GeographicLib::TransverseMercator::Forward(), GeographicLib::CassiniSoldner::Forward(), GeographicLib::TransverseMercatorExact::Forward(), GeographicLib::AlbersEqualArea::Forward(), GeographicLib::LambertConformalConic::Forward(), GeographicLib::Rhumb::GenInverse(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), and main().
|
inlinestatic |
Coarsen a value close to zero.
T | the type of the argument and returned value. |
[in] | x |
The makes the smallest gap in x = 1/16 - nextafter(1/16, 0) = 1/257 for reals = 0.7 pm on the earth if x is an angle in degrees. (This is about 1000 times more resolution than we get with angles around 90°.) We use this to avoid having to deal with near singular cases when x is non-zero but tiny (e.g., 10−200). This also converts -0 to +0.
Definition at line 498 of file Math.hpp.
References GEOGRAPHICLIB_VOLATILE.
Referenced by GeographicLib::CassiniSoldner::Forward(), GeographicLib::GeodesicExact::GenInverse(), and GeographicLib::Geodesic::GenInverse().
|
inlinestatic |
Evaluate the tangent function with the argument in degrees
T | the type of the argument and the returned value. |
[in] | x | in degrees. |
If x = ±90°, then a suitably large (but finite) value is returned.
Definition at line 517 of file Math.hpp.
References degree(), and sq().
Referenced by GeographicLib::Ellipsoid::AuthalicLatitude(), GeographicLib::Ellipsoid::CircleHeight(), GeographicLib::Ellipsoid::CircleRadius(), GeographicLib::Ellipsoid::ConformalLatitude(), GeographicLib::PolarStereographic::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::TransverseMercatorExact::Forward(), GeographicLib::Ellipsoid::GeocentricLatitude(), GeographicLib::Ellipsoid::InverseAuthalicLatitude(), GeographicLib::Ellipsoid::InverseConformalLatitude(), GeographicLib::Ellipsoid::InverseGeocentricLatitude(), GeographicLib::Ellipsoid::InverseParametricLatitude(), GeographicLib::Ellipsoid::IsometricLatitude(), and GeographicLib::Ellipsoid::ParametricLatitude().
|
inlinestatic |
Evaluate the atan function with the result in degrees
T | the type of the argument and the returned value. |
[in] | x |
Large values for the argument return ±90°
Definition at line 533 of file Math.hpp.
References degree(), and sq().
Referenced by GeographicLib::Ellipsoid::AuthalicLatitude(), GeographicLib::Ellipsoid::ConformalLatitude(), GeographicLib::Ellipsoid::GeocentricLatitude(), GeographicLib::Ellipsoid::InverseAuthalicLatitude(), GeographicLib::Ellipsoid::InverseConformalLatitude(), GeographicLib::Ellipsoid::InverseGeocentricLatitude(), GeographicLib::Ellipsoid::InverseIsometricLatitude(), GeographicLib::Ellipsoid::InverseParametricLatitude(), and GeographicLib::Ellipsoid::ParametricLatitude().
|
inlinestatic |
Evaluate the atan2 function with the result in degrees
T | the type of the arguments and the returned value. |
[in] | y | |
[in] | x |
The result is in the range [−180° 180°).
Definition at line 551 of file Math.hpp.
References degree().
Referenced by GeographicLib::MagneticModel::FieldComponents(), GeographicLib::Rhumb::GenInverse(), GeographicLib::GeodesicExact::GenInverse(), GeographicLib::Geodesic::GenInverse(), GeographicLib::GeodesicLineExact::GenPosition(), and GeographicLib::GeodesicLine::GenPosition().
|
static |
Evaluate e atanh(e x)
T | the type of the argument and the returned value. |
[in] | x | |
[in] | es | the signed eccentricity = sign(e2) sqrt(|e2|) |
If e2 is negative (e is imaginary), the expression is evaluated in terms of atan.
Referenced by GeographicLib::LambertConformalConic::Forward().
|
static |
tanχ in terms of tanφ
T | the type of the argument and the returned value. |
[in] | tau | τ = tanφ |
[in] | es | the signed eccentricity = sign(e2) sqrt(|e2|) |
See Eqs. (7–9) of C. F. F. Karney, Transverse Mercator with an accuracy of a few nanometers, J. Geodesy 85(8), 475–485 (Aug. 2011) (preprint arXiv:1002.1417).
Referenced by GeographicLib::Ellipsoid::ConformalLatitude(), GeographicLib::PolarStereographic::Forward(), GeographicLib::TransverseMercator::Forward(), GeographicLib::TransverseMercatorExact::Forward(), and GeographicLib::Ellipsoid::IsometricLatitude().
|
static |
tanφ in terms of tanχ
T | the type of the argument and the returned value. |
[in] | taup | τ′ = tanχ |
[in] | es | the signed eccentricity = sign(e2) sqrt(|e2|) |
See Eqs. (19–21) of C. F. F. Karney, Transverse Mercator with an accuracy of a few nanometers, J. Geodesy 85(8), 475–485 (Aug. 2011) (preprint arXiv:1002.1417).
Referenced by GeographicLib::TransverseMercatorExact::Forward(), GeographicLib::Ellipsoid::InverseConformalLatitude(), GeographicLib::Ellipsoid::InverseIsometricLatitude(), GeographicLib::PolarStereographic::Reverse(), GeographicLib::TransverseMercator::Reverse(), GeographicLib::TransverseMercatorExact::Reverse(), and GeographicLib::LambertConformalConic::Reverse().
|
inlinestatic |
Test for finiteness.
T | the type of the argument. |
[in] | x |
Definition at line 614 of file Math.hpp.
Referenced by GeographicLib::AlbersEqualArea::AlbersEqualArea(), GeographicLib::DMS::Encode(), GeographicLib::Geocentric::Geocentric(), GeographicLib::Geodesic::Geodesic(), GeographicLib::GeodesicExact::GeodesicExact(), GeographicLib::LambertConformalConic::LambertConformalConic(), main(), GeographicLib::NormalGravity::NormalGravity(), GeographicLib::PolarStereographic::PolarStereographic(), GeographicLib::LambertConformalConic::Reverse(), GeographicLib::PolarStereographic::SetScale(), GeographicLib::AlbersEqualArea::SetScale(), GeographicLib::LambertConformalConic::SetScale(), GeographicLib::Utility::str(), GeographicLib::TransverseMercator::TransverseMercator(), and GeographicLib::TransverseMercatorExact::TransverseMercatorExact().
|
inlinestatic |
The NaN (not a number)
T | the type of the returned value. |
Definition at line 629 of file Math.hpp.
Referenced by GeographicLib::NormalGravity::AngularVelocity(), GeographicLib::GeodesicLineExact::Azimuth(), GeographicLib::GeodesicLine::Azimuth(), GeographicLib::GravityModel::Circle(), GeographicLib::PolygonAreaT< GeodType >::Clear(), GeographicLib::NormalGravity::DynamicalFormFactor(), GeographicLib::GeodesicLineExact::EquatorialArc(), GeographicLib::GeodesicLine::EquatorialArc(), GeographicLib::GeodesicLineExact::EquatorialAzimuth(), GeographicLib::GeodesicLine::EquatorialAzimuth(), GeographicLib::NormalGravity::EquatorialGravity(), GeographicLib::MagneticCircle::Flattening(), GeographicLib::Geocentric::Flattening(), GeographicLib::GravityCircle::Flattening(), GeographicLib::NormalGravity::Flattening(), GeographicLib::GeodesicLineExact::Flattening(), GeographicLib::GeodesicLine::Flattening(), GeographicLib::Gnomonic::Forward(), GeographicLib::UTMUPS::Forward(), GeographicLib::GeodesicLineExact::GenPosition(), GeographicLib::GeodesicLine::GenPosition(), GeographicLib::RhumbLine::GenPosition(), GeographicLib::GravityCircle::GeoidHeight(), GeographicLib::NormalGravity::GravityFlattening(), GeographicLib::OSGB::GridReference(), GeographicLib::MagneticCircle::Height(), GeographicLib::GravityCircle::Height(), GeographicLib::MagneticCircle::Latitude(), GeographicLib::GravityCircle::Latitude(), GeographicLib::GeodesicLineExact::Latitude(), GeographicLib::GeodesicLine::Latitude(), GeographicLib::GeodesicLineExact::Longitude(), GeographicLib::GeodesicLine::Longitude(), main(), GeographicLib::MagneticCircle::MajorRadius(), GeographicLib::NormalGravity::MajorRadius(), GeographicLib::Geocentric::MajorRadius(), GeographicLib::GravityCircle::MajorRadius(), GeographicLib::GeodesicLineExact::MajorRadius(), GeographicLib::GeodesicLine::MajorRadius(), GeographicLib::NormalGravity::MassConstant(), GeographicLib::NormalGravity::PolarGravity(), GeographicLib::Geohash::Reverse(), GeographicLib::Gnomonic::Reverse(), GeographicLib::UTMUPS::Reverse(), GeographicLib::MGRS::Reverse(), GeographicLib::GravityCircle::SphericalAnomaly(), GeographicLib::NormalGravity::SurfacePotential(), GeographicLib::PolygonAreaT< GeodType >::TestEdge(), and GeographicLib::MagneticCircle::Time().
|
inlinestatic |
A synonym for NaN<real>().
|
inlinestatic |
Test for NaN.
T | the type of the argument. |
[in] | x |
Definition at line 646 of file Math.hpp.
Referenced by GeographicLib::Geohash::Forward(), GeographicLib::MGRS::Forward(), GeographicLib::GeoCoords::GeoRepresentation(), GeographicLib::OSGB::GridReference(), main(), GeographicLib::UTMUPS::Reverse(), and GeographicLib::UTMUPS::StandardZone().
|
inlinestatic |
Infinity
T | the type of the returned value. |
Definition at line 660 of file Math.hpp.
Referenced by GeographicLib::EllipticFunction::Reset().
|
inlinestatic |
A synonym for infinity<real>().
|
inlinestatic |
|
static |
Number of additional decimal digits of precision of real relative to double (0 for float).
DEPRECATED: use extra_digits() instead
|
static |
true if the machine is big-endian.
Definition at line 208 of file Math.hpp.
Referenced by GeographicLib::Utility::readarray(), and GeographicLib::Utility::writearray().