Rollup merge of #147076 - joshuarayton:more-float-constants-issue, r=tgross35
update issue number for more_float_constants Update issue number from https://github.com/rust-lang/rust/issues/103883 to https://github.com/rust-lang/rust/issues/146939 r? ``@tgross35``
This commit is contained in:
commit
bd2e18671d
4 changed files with 24 additions and 24 deletions
|
|
@ -33,12 +33,12 @@ pub mod consts {
|
|||
|
||||
/// The golden ratio (φ)
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const PHI: f128 = 1.61803398874989484820458683436563811772030917980576286213545_f128;
|
||||
|
||||
/// The Euler-Mascheroni constant (γ)
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const EGAMMA: f128 = 0.577215664901532860606512090082402431042159335939923598805767_f128;
|
||||
|
||||
/// π/2
|
||||
|
|
@ -67,14 +67,14 @@ pub mod consts {
|
|||
|
||||
/// 1/sqrt(π)
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_PI: f128 =
|
||||
0.564189583547756286948079451560772585844050629328998856844086_f128;
|
||||
|
||||
/// 1/sqrt(2π)
|
||||
#[doc(alias = "FRAC_1_SQRT_TAU")]
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_2PI: f128 =
|
||||
0.398942280401432677939946059934381868475858631164934657665926_f128;
|
||||
|
||||
|
|
@ -98,12 +98,12 @@ pub mod consts {
|
|||
|
||||
/// sqrt(3)
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const SQRT_3: f128 = 1.73205080756887729352744634150587236694280525381038062805581_f128;
|
||||
|
||||
/// 1/sqrt(3)
|
||||
#[unstable(feature = "f128", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_3: f128 =
|
||||
0.577350269189625764509148780501957455647601751270126876018602_f128;
|
||||
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ pub mod consts {
|
|||
|
||||
/// The golden ratio (φ)
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const PHI: f16 = 1.618033988749894848204586834365638118_f16;
|
||||
|
||||
/// The Euler-Mascheroni constant (γ)
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const EGAMMA: f16 = 0.577215664901532860606512090082402431_f16;
|
||||
|
||||
/// π/2
|
||||
|
|
@ -69,13 +69,13 @@ pub mod consts {
|
|||
|
||||
/// 1/sqrt(π)
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_PI: f16 = 0.564189583547756286948079451560772586_f16;
|
||||
|
||||
/// 1/sqrt(2π)
|
||||
#[doc(alias = "FRAC_1_SQRT_TAU")]
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_2PI: f16 = 0.398942280401432677939946059934381868_f16;
|
||||
|
||||
/// 2/π
|
||||
|
|
@ -96,12 +96,12 @@ pub mod consts {
|
|||
|
||||
/// sqrt(3)
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const SQRT_3: f16 = 1.732050807568877293527446341505872367_f16;
|
||||
|
||||
/// 1/sqrt(3)
|
||||
#[unstable(feature = "f16", issue = "116909")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
// Also, #[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_3: f16 = 0.577350269189625764509148780501957456_f16;
|
||||
|
||||
/// Euler's number (e)
|
||||
|
|
|
|||
|
|
@ -291,11 +291,11 @@ pub mod consts {
|
|||
pub const TAU: f32 = 6.28318530717958647692528676655900577_f32;
|
||||
|
||||
/// The golden ratio (φ)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const PHI: f32 = 1.618033988749894848204586834365638118_f32;
|
||||
|
||||
/// The Euler-Mascheroni constant (γ)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const EGAMMA: f32 = 0.577215664901532860606512090082402431_f32;
|
||||
|
||||
/// π/2
|
||||
|
|
@ -323,12 +323,12 @@ pub mod consts {
|
|||
pub const FRAC_1_PI: f32 = 0.318309886183790671537767526745028724_f32;
|
||||
|
||||
/// 1/sqrt(π)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_PI: f32 = 0.564189583547756286948079451560772586_f32;
|
||||
|
||||
/// 1/sqrt(2π)
|
||||
#[doc(alias = "FRAC_1_SQRT_TAU")]
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_2PI: f32 = 0.398942280401432677939946059934381868_f32;
|
||||
|
||||
/// 2/π
|
||||
|
|
@ -348,11 +348,11 @@ pub mod consts {
|
|||
pub const FRAC_1_SQRT_2: f32 = 0.707106781186547524400844362104849039_f32;
|
||||
|
||||
/// sqrt(3)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const SQRT_3: f32 = 1.732050807568877293527446341505872367_f32;
|
||||
|
||||
/// 1/sqrt(3)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_3: f32 = 0.577350269189625764509148780501957456_f32;
|
||||
|
||||
/// Euler's number (e)
|
||||
|
|
|
|||
|
|
@ -291,11 +291,11 @@ pub mod consts {
|
|||
pub const TAU: f64 = 6.28318530717958647692528676655900577_f64;
|
||||
|
||||
/// The golden ratio (φ)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const PHI: f64 = 1.618033988749894848204586834365638118_f64;
|
||||
|
||||
/// The Euler-Mascheroni constant (γ)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const EGAMMA: f64 = 0.577215664901532860606512090082402431_f64;
|
||||
|
||||
/// π/2
|
||||
|
|
@ -323,12 +323,12 @@ pub mod consts {
|
|||
pub const FRAC_1_PI: f64 = 0.318309886183790671537767526745028724_f64;
|
||||
|
||||
/// 1/sqrt(π)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_PI: f64 = 0.564189583547756286948079451560772586_f64;
|
||||
|
||||
/// 1/sqrt(2π)
|
||||
#[doc(alias = "FRAC_1_SQRT_TAU")]
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_2PI: f64 = 0.398942280401432677939946059934381868_f64;
|
||||
|
||||
/// 2/π
|
||||
|
|
@ -348,11 +348,11 @@ pub mod consts {
|
|||
pub const FRAC_1_SQRT_2: f64 = 0.707106781186547524400844362104849039_f64;
|
||||
|
||||
/// sqrt(3)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const SQRT_3: f64 = 1.732050807568877293527446341505872367_f64;
|
||||
|
||||
/// 1/sqrt(3)
|
||||
#[unstable(feature = "more_float_constants", issue = "103883")]
|
||||
#[unstable(feature = "more_float_constants", issue = "146939")]
|
||||
pub const FRAC_1_SQRT_3: f64 = 0.577350269189625764509148780501957456_f64;
|
||||
|
||||
/// Euler's number (e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue