5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_PI_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_PI_HPP_
9#include "arene/base/compiler_support/attributes.hpp"
10#include "arene/base/constraints/constraints.hpp"
11#include "arene/base/stdlib_choice/enable_if.hpp"
12#include "arene/base/stdlib_choice/is_same.hpp"
27template <
typename Type>
28auto instantiation_of_unspecialized_value() -> Type;
33template <
typename Type,
typename = constraints<>>
34extern constexpr Type pi_v{pi_detail::instantiation_of_unspecialized_value<Type>()};
37template <
typename Type>
38extern constexpr float pi_v<Type, constraints<std::enable_if_t<std::is_same<Type,
float>::value>>>{
39 3.141592653589793238462643383279F
43template <
typename Type>
44extern constexpr double pi_v<Type, constraints<std::enable_if_t<std::is_same<Type,
double>::value>>>{
45 3.141592653589793238462643383279
53template <
typename Type>
61ARENE_MAYBE_UNUSED
constexpr double const& pi{pi_v<
double>};
Definition arithmetic_identities.hpp:13
constexpr Type pi_v
The value of Pi, in the specified floating point type. Type must be float or double ,...
Definition array_exceptions_disabled.cpp:11
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10