Skip to content

Commit

Permalink
[test] Calculate geodesic scale (M12) using high precision arithmetic
Browse files Browse the repository at this point in the history
Instructions for building GeographicLib are given here:
https://geographiclib.sourceforge.io/html/highprec.html

It requires the use of libquadmath package, which is present
in g++-7 by default. The cmake command used is:
cmake -DCMAKE_CXX_COMPILER=g++-7 -DGEOGRAPHICLIB_PRECISION=4 ..

Internally, GeographicLib makes use of float128 as part of Boost
Multiprecision library. To output full precision values, use:
std::setprecision(std::numeric_limits<float128>::max_digits10)
  • Loading branch information
adl1995 committed Jun 12, 2018
1 parent fe1b9ff commit 2cba2fa
Showing 1 changed file with 100 additions and 100 deletions.
Loading

0 comments on commit 2cba2fa

Please sign in to comment.