mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
10c73ea3e3
sprout/complex.hpp 修正
25 lines
575 B
C++
25 lines
575 B
C++
#ifndef SPROUT_MATH_CONSTANTS_HPP
|
|
#define SPROUT_MATH_CONSTANTS_HPP
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
namespace sprout {
|
|
namespace math {
|
|
//
|
|
// pi
|
|
//
|
|
template<typename T>
|
|
SPROUT_CONSTEXPR inline T pi() {
|
|
return 3.141592653589793238462643383279502884197169399375105820974944L;
|
|
}
|
|
//
|
|
// pi_div_two
|
|
//
|
|
template<typename T>
|
|
SPROUT_CONSTEXPR inline T pi_div_two() {
|
|
return 1.570796326794896619231321691639751442098584699687552910487472L;
|
|
}
|
|
} // namespace math
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_MATH_CONSTANTS_HPP
|