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 }
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
GeographicLib
Namespace for GeographicLib.
Definition: JacobiConformal.hpp:15
Math.hpp
Header for GeographicLib::Math class.
main
int main()
Definition: example-Math.cpp:10
std
Definition: BFloat16.h:88


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:31