File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,18 @@ pub mod consts {
128128 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
129129 pub const LOG2_E : f32 = 1.44269504088896340735992468100189214_f32 ;
130130
131+ /// log<sub>2</sub>(10)
132+ #[ unstable( feature = "extra_log_consts" , issue = "50540" ) ]
133+ pub const LOG2_10 : f32 = 3.32192809488736234787031942948939018_f32 ;
134+
131135 /// log<sub>10</sub>(e)
132136 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
133137 pub const LOG10_E : f32 = 0.434294481903251827651128918916605082_f32 ;
134138
139+ /// log<sub>10</sub>(2)
140+ #[ unstable( feature = "extra_log_consts" , issue = "50540" ) ]
141+ pub const LOG10_2 : f32 = 0.301029995663981195213738894724493027_f32 ;
142+
135143 /// ln(2)
136144 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
137145 pub const LN_2 : f32 = 0.693147180559945309417232121458176568_f32 ;
Original file line number Diff line number Diff line change @@ -124,10 +124,18 @@ pub mod consts {
124124 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
125125 pub const E : f64 = 2.71828182845904523536028747135266250_f64 ;
126126
127+ /// log<sub>2</sub>(10)
128+ #[ unstable( feature = "extra_log_consts" , issue = "50540" ) ]
129+ pub const LOG2_10 : f64 = 3.32192809488736234787031942948939018_f64 ;
130+
127131 /// log<sub>2</sub>(e)
128132 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
129133 pub const LOG2_E : f64 = 1.44269504088896340735992468100189214_f64 ;
130134
135+ /// log<sub>10</sub>(2)
136+ #[ unstable( feature = "extra_log_consts" , issue = "50540" ) ]
137+ pub const LOG10_2 : f64 = 0.301029995663981195213738894724493027_f64 ;
138+
131139 /// log<sub>10</sub>(e)
132140 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
133141 pub const LOG10_E : f64 = 0.434294481903251827651128918916605082_f64 ;
You can’t perform that action at this time.
0 commit comments