summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/include/gudhi/math.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/include/gudhi/math.h b/src/common/include/gudhi/math.h
new file mode 100644
index 00000000..f367bac2
--- /dev/null
+++ b/src/common/include/gudhi/math.h
@@ -0,0 +1,23 @@
+/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
+ * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
+ * Author(s): Vincent Rouvreau
+ *
+ * Copyright (C) 2020 Inria
+ *
+ * Modification(s):
+ * - YYYY/MM Author: Description of the modification
+ */
+
+#ifndef MATH_H_
+#define MATH_H_
+
+#include <boost/math/constants/constants.hpp>
+
+namespace Gudhi {
+
+// In wait of C++20 std::numbers::pi with #include <numbers>
+static constexpr double PI = boost::math::constants::pi<double>();
+
+} // namespace Gudhi
+
+#endif // MATH_H_