14 double lat = 27.99,
lon0 = 86.93,
h = 8820;
18 for (
int i = -5;
i <= 5; ++
i) {
21 grav.
Gravity(lat, lon,
h, gx, gy, gz);
22 cout << lon <<
" " << gx <<
" " << gy <<
" " << gz <<
"\n";
29 for (
int i = -5;
i <= 5; ++
i) {
33 cout << lon <<
" " << gx <<
" " << gy <<
" " << gz <<
"\n";
37 catch (
const exception&
e) {
38 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::GravityModel class.
Math::real Gravity(real lat, real lon, real h, real &gx, real &gy, real &gz) const
GravityCircle Circle(real lat, real h, unsigned caps=ALL) const
Math::real Gravity(real lon, real &gx, real &gy, real &gz) const
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Model of the earth's gravity field.
Header for GeographicLib::GravityCircle class.
Gravity on a circle of latitude.