example-Math.cpp
Go to the documentation of this file.
1 // Example of using the GeographicLib::Math class
2 
3 #include <iostream>
4 #include <exception>
5 #include <GeographicLib/Math.hpp>
6 
7 using namespace std;
8 using namespace GeographicLib;
9 
10 int main() {
11  try {
12  cout << Math::pi() << " " << Math::sq(Math::pi()) << "\n";
13  }
14  catch (const exception& e) {
15  cerr << "Caught exception: " << e.what() << "\n";
16  return 1;
17  }
18 }
Definition: Half.h:150
Header for GeographicLib::Math class.
int main()
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:02