@@ -39,7 +39,7 @@ pub mod consts {
39
39
/// The Euler-Mascheroni constant (γ)
40
40
#[ unstable( feature = "f128" , issue = "116909" ) ]
41
41
// Also, #[unstable(feature = "more_float_constants", issue = "103883")]
42
- pub const EGAMMA : f128 = 0.577215664901532860606512090082402431042159335939923598805767_f128 ;
42
+ pub const GAMMA : f128 = 0.577215664901532860606512090082402431042159335939923598805767_f128 ;
43
43
44
44
/// π/2
45
45
#[ unstable( feature = "f128" , issue = "116909" ) ]
@@ -107,6 +107,17 @@ pub mod consts {
107
107
pub const FRAC_1_SQRT_3 : f128 =
108
108
0.577350269189625764509148780501957455647601751270126876018602_f128 ;
109
109
110
+ /// sqrt(5)
111
+ #[ unstable( feature = "f128" , issue = "116909" ) ]
112
+ // Also, #[unstable(feature = "more_float_constants", issue = "103883")]
113
+ pub const SQRT_5 : f128 = 2.23606797749978969640917366873127623544061835961152572427089_f128 ;
114
+
115
+ /// 1/sqrt(5)
116
+ #[ unstable( feature = "f128" , issue = "116909" ) ]
117
+ // Also, #[unstable(feature = "more_float_constants", issue = "103883")]
118
+ pub const FRAC_1_SQRT_5 : f128 =
119
+ 0.447213595499957939281834733746255247088123671922305144854179_f128 ;
120
+
110
121
/// Euler's number (e)
111
122
#[ unstable( feature = "f128" , issue = "116909" ) ]
112
123
pub const E : f128 = 2.71828182845904523536028747135266249775724709369995957496697_f128 ;
@@ -131,6 +142,11 @@ pub mod consts {
131
142
#[ unstable( feature = "f128" , issue = "116909" ) ]
132
143
pub const LN_2 : f128 = 0.693147180559945309417232121458176568075500134360255254120680_f128 ;
133
144
145
+ /// ln(3)
146
+ #[ unstable( feature = "f128" , issue = "116909" ) ]
147
+ // Also, #[unstable(feature = "more_float_constants", issue = "103883")]
148
+ pub const LN_3 : f128 = 1.09861228866810969139524523692252570464749055782274945173469_f128 ;
149
+
134
150
/// ln(10)
135
151
#[ unstable( feature = "f128" , issue = "116909" ) ]
136
152
pub const LN_10 : f128 = 2.30258509299404568401799145468436420760110148862877297603333_f128 ;
0 commit comments