16 sum += 1e20; sum += 1; sum += 2; sum += 100; sum += 5000; sum += -1e20;
17 acc += 1e20; acc += 1; acc += 2; acc += 100; acc += 5000; acc += -1e20;
18 cout << sum <<
" " << acc() <<
"\n";
20 catch (
const exception&
e) {
21 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::Accumulator class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())