-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.rs
209 lines (153 loc) · 7.19 KB
/
output.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/* automatically generated file */
mod f16_consts {
/// Euler’s number (e)
#[unstable(feature = "f16", issue = "116909")]
const E: f16 = 2.7182818284590452353602874713512_f16;
/// The Euler-Mascheroni constant (γ)
#[unstable(feature = "f16", issue = "116909")]
const EGAMMA: f16 = 0.57721566490153286060651209008234_f16;
/// 1/π
#[unstable(feature = "f16", issue = "116909")]
const FRAC_1_PI: f16 = 0.3183098861837906715377675267449_f16;
/// 1/sqrt(2)
#[unstable(feature = "f16", issue = "116909")]
const FRAC_1_SQRT_2: f16 = 0.70710678118654746171500846685376_f16;
/// 1/sqrt(3)
#[unstable(feature = "f16", issue = "116909")]
const FRAC_1_SQRT_3: f16 = 0.57735026918962584208117050366127_f16;
/// 1/sqrt(π)
#[unstable(feature = "f16", issue = "116909")]
const FRAC_1_SQRT_PI: f16 = 0.56418958354775628694807945156097_f16;
/// 2/π
#[unstable(feature = "f16", issue = "116909")]
const FRAC_2_PI: f16 = 0.6366197723675813430755350534898_f16;
/// 2/sqrt(π)
#[unstable(feature = "f16", issue = "116909")]
const FRAC_2_SQRT_PI: f16 = 1.1283791670955125738961589031219_f16;
/// π/2
#[unstable(feature = "f16", issue = "116909")]
const FRAC_PI_2: f16 = 1.5707963267948966192313216916397_f16;
/// π/3
#[unstable(feature = "f16", issue = "116909")]
const FRAC_PI_3: f16 = 1.0471975511965977461542144610936_f16;
/// π/4
#[unstable(feature = "f16", issue = "116909")]
const FRAC_PI_4: f16 = 0.78539816339744830961566084581983_f16;
/// π/6
#[unstable(feature = "f16", issue = "116909")]
const FRAC_PI_6: f16 = 0.52359877559829887307710723054682_f16;
/// π/8
#[unstable(feature = "f16", issue = "116909")]
const FRAC_PI_8: f16 = 0.39269908169872415480783042290992_f16;
/// ln(10)
#[unstable(feature = "f16", issue = "116909")]
const LN_10: f16 = 2.3025850929940459010936137929093_f16;
/// ln(2)
#[unstable(feature = "f16", issue = "116909")]
const LN_2: f16 = 0.69314718055994528622676398299518_f16;
/// log10(2)
#[unstable(feature = "f16", issue = "116909")]
const LOG10_2: f16 = 0.30102999566398119801746702250966_f16;
/// log10(e)
#[unstable(feature = "f16", issue = "116909")]
const LOG10_E: f16 = 0.43429448190325182765112891891628_f16;
/// log2(10)
#[unstable(feature = "f16", issue = "116909")]
const LOG2_10: f16 = 3.3219280948873621817085677321302_f16;
/// log2(e)
#[unstable(feature = "f16", issue = "116909")]
const LOG2_E: f16 = 1.442695040888963407359924681001_f16;
/// The golden ratio (φ)
#[unstable(feature = "f16", issue = "116909")]
const PHI: f16 = 1.6180339887498948482045868343658_f16;
/// Archimedes’ constant (π)
#[unstable(feature = "f16", issue = "116909")]
const PI: f16 = 3.1415926535897932384626433832793_f16;
/// sqrt(2)
#[unstable(feature = "f16", issue = "116909")]
const SQRT_2: f16 = 1.4142135623730951454746218587388_f16;
/// sqrt(3)
#[unstable(feature = "f16", issue = "116909")]
const SQRT_3: f16 = 1.7320508075688771931766041234368_f16;
/// The full circle constant (τ)
///
/// Equal to 2π
#[unstable(feature = "f16", issue = "116909")]
const TAU: f16 = 6.2831853071795864769252867665587_f16;
}
mod f128_consts {
/// Euler’s number (e)
#[unstable(feature = "f128", issue = "116909")]
const E: f128 = 2.7182818284590452353602874713526624977572470936999595749659_f128;
/// The Euler-Mascheroni constant (γ)
#[unstable(feature = "f128", issue = "116909")]
const EGAMMA: f128 = 0.5772156649015328606065120900824024310421593359399235988056_f128;
/// 1/π
#[unstable(feature = "f128", issue = "116909")]
const FRAC_1_PI: f128 = 0.31830988618379067153776752674502872406891929148091289749518_f128;
/// 1/sqrt(2)
#[unstable(feature = "f128", issue = "116909")]
const FRAC_1_SQRT_2: f128 = 0.707106781186547461715008466853760182857513427734375_f128;
/// 1/sqrt(3)
#[unstable(feature = "f128", issue = "116909")]
const FRAC_1_SQRT_3: f128 = 0.57735026918962584208117050366126932203769683837890625_f128;
/// 1/sqrt(π)
#[unstable(feature = "f128", issue = "116909")]
const FRAC_1_SQRT_PI: f128 = 0.56418958354775628694807945156077258584405062932899885684421_f128;
/// 2/π
#[unstable(feature = "f128", issue = "116909")]
const FRAC_2_PI: f128 = 0.63661977236758134307553505349005744813783858296182579499035_f128;
/// 2/sqrt(π)
#[unstable(feature = "f128", issue = "116909")]
const FRAC_2_SQRT_PI: f128 = 1.1283791670955125738961589031215451716881012586579977136884_f128;
/// π/2
#[unstable(feature = "f128", issue = "116909")]
const FRAC_PI_2: f128 = 1.5707963267948966192313216916397514420985846996875529104875_f128;
/// π/3
#[unstable(feature = "f128", issue = "116909")]
const FRAC_PI_3: f128 = 1.0471975511965977461542144610931676280657231331250352736579_f128;
/// π/4
#[unstable(feature = "f128", issue = "116909")]
const FRAC_PI_4: f128 = 0.78539816339744830961566084581987572104929234984377645524373_f128;
/// π/6
#[unstable(feature = "f128", issue = "116909")]
const FRAC_PI_6: f128 = 0.52359877559829887307710723054658381403286156656251763682894_f128;
/// π/8
#[unstable(feature = "f128", issue = "116909")]
const FRAC_PI_8: f128 = 0.39269908169872415480783042290993786052464617492188822762187_f128;
/// ln(10)
#[unstable(feature = "f128", issue = "116909")]
const LN_10: f128 = 2.30258509299404590109361379290930926799774169921875_f128;
/// ln(2)
#[unstable(feature = "f128", issue = "116909")]
const LN_2: f128 = 0.69314718055994528622676398299518041312694549560546875_f128;
/// log10(2)
#[unstable(feature = "f128", issue = "116909")]
const LOG10_2: f128 = 0.301029995663981198017467022509663365781307220458984375_f128;
/// log10(e)
#[unstable(feature = "f128", issue = "116909")]
const LOG10_E: f128 = 0.43429448190325182765112891891660508229439700580366656611428_f128;
/// log2(10)
#[unstable(feature = "f128", issue = "116909")]
const LOG2_10: f128 = 3.321928094887362181708567732130177319049835205078125_f128;
/// log2(e)
#[unstable(feature = "f128", issue = "116909")]
const LOG2_E: f128 = 1.4426950408889634073599246810018921374266459541529859341353_f128;
/// The golden ratio (φ)
#[unstable(feature = "f128", issue = "116909")]
const PHI: f128 = 1.6180339887498948482045868343656381177203091798057628621351_f128;
/// Archimedes’ constant (π)
#[unstable(feature = "f128", issue = "116909")]
const PI: f128 = 3.1415926535897932384626433832795028841971693993751058209749_f128;
/// sqrt(2)
#[unstable(feature = "f128", issue = "116909")]
const SQRT_2: f128 = 1.4142135623730951454746218587388284504413604736328125_f128;
/// sqrt(3)
#[unstable(feature = "f128", issue = "116909")]
const SQRT_3: f128 = 1.732050807568877193176604123436845839023590087890625_f128;
/// The full circle constant (τ)
///
/// Equal to 2π
#[unstable(feature = "f128", issue = "116909")]
const TAU: f128 = 6.2831853071795864769252867665590057683943387987502116419499_f128;
}