mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
sprout/functional/dft.hpp 追加
sprout/complex.hpp 修正
This commit is contained in:
parent
aa96f9ce73
commit
10c73ea3e3
17 changed files with 453 additions and 24 deletions
25
sprout/math/constants.hpp
Normal file
25
sprout/math/constants.hpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue