mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
need to add L to get full precision for long doubles
This commit is contained in:
parent
69c3080931
commit
ba89cc21d6
1 changed files with 9 additions and 9 deletions
18
const.hh
18
const.hh
|
|
@ -17,47 +17,47 @@ struct Const
|
|||
static constexpr T EighthPi()
|
||||
{
|
||||
// a(1)/2
|
||||
return .3926990816987241548078304229099378605246461749218882276218680740384;
|
||||
return .3926990816987241548078304229099378605246461749218882276218680740384L;
|
||||
}
|
||||
static constexpr T FourthPi()
|
||||
{
|
||||
// a(1)
|
||||
return .7853981633974483096156608458198757210492923498437764552437361480769;
|
||||
return .7853981633974483096156608458198757210492923498437764552437361480769L;
|
||||
}
|
||||
static constexpr T HalfPi()
|
||||
{
|
||||
// 2*a(1)
|
||||
return 1.570796326794896619231321691639751442098584699687552910487472296153;
|
||||
return 1.570796326794896619231321691639751442098584699687552910487472296153L;
|
||||
}
|
||||
static constexpr T Pi()
|
||||
{
|
||||
// 4*a(1)
|
||||
return 3.141592653589793238462643383279502884197169399375105820974944592307;
|
||||
return 3.141592653589793238462643383279502884197169399375105820974944592307L;
|
||||
}
|
||||
static constexpr T TwoPi()
|
||||
{
|
||||
// 8*a(1)
|
||||
return 6.283185307179586476925286766559005768394338798750211641949889184615;
|
||||
return 6.283185307179586476925286766559005768394338798750211641949889184615L;
|
||||
}
|
||||
static constexpr T FourPi()
|
||||
{
|
||||
// 16*a(1)
|
||||
return 12.56637061435917295385057353311801153678867759750042328389977836923;
|
||||
return 12.56637061435917295385057353311801153678867759750042328389977836923L;
|
||||
}
|
||||
static constexpr T SqrtPi()
|
||||
{
|
||||
// sqrt(4*a(1))
|
||||
return 1.772453850905516027298167483341145182797549456122387128213807789852;
|
||||
return 1.772453850905516027298167483341145182797549456122387128213807789852L;
|
||||
}
|
||||
static constexpr T SqrtTwoPi()
|
||||
{
|
||||
// sqrt(8*a(1))
|
||||
return 2.506628274631000502415765284811045253006986740609938316629923576342;
|
||||
return 2.506628274631000502415765284811045253006986740609938316629923576342L;
|
||||
}
|
||||
static constexpr T InvSqrtTwo()
|
||||
{
|
||||
// sqrt(2)/2
|
||||
return .7071067811865475244008443621048490392848359376884740365883398689953;
|
||||
return .7071067811865475244008443621048490392848359376884740365883398689953L;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue