Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
GeographicLib
examples
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
}
std
Definition:
Half.h:150
Math.hpp
Header for GeographicLib::Math class.
main
int main()
Definition:
example-Math.cpp:10
GeographicLib
Namespace for GeographicLib.
Definition:
JacobiConformal.hpp:15
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:02