@@ -112,8 +112,6 @@ impl f32 {
112
112
/// # Examples
113
113
///
114
114
/// ```
115
- /// use std::f32;
116
- ///
117
115
/// let x = 3.6_f32;
118
116
/// let y = -3.6_f32;
119
117
/// let abs_difference_x = (x.fract() - 0.6).abs();
@@ -135,8 +133,6 @@ impl f32 {
135
133
/// # Examples
136
134
///
137
135
/// ```
138
- /// use std::f32;
139
- ///
140
136
/// let x = 3.5_f32;
141
137
/// let y = -3.5_f32;
142
138
///
@@ -164,8 +160,6 @@ impl f32 {
164
160
/// # Examples
165
161
///
166
162
/// ```
167
- /// use std::f32;
168
- ///
169
163
/// let f = 3.5_f32;
170
164
///
171
165
/// assert_eq!(f.signum(), 1.0);
@@ -190,8 +184,6 @@ impl f32 {
190
184
/// # Examples
191
185
///
192
186
/// ```
193
- /// use std::f32;
194
- ///
195
187
/// let f = 3.5_f32;
196
188
///
197
189
/// assert_eq!(f.copysign(0.42), 3.5_f32);
@@ -217,8 +209,6 @@ impl f32 {
217
209
/// # Examples
218
210
///
219
211
/// ```
220
- /// use std::f32;
221
- ///
222
212
/// let m = 10.0_f32;
223
213
/// let x = 4.0_f32;
224
214
/// let b = 60.0_f32;
@@ -301,8 +291,6 @@ impl f32 {
301
291
/// # Examples
302
292
///
303
293
/// ```
304
- /// use std::f32;
305
- ///
306
294
/// let x = 2.0_f32;
307
295
/// let abs_difference = (x.powi(2) - (x * x)).abs();
308
296
///
@@ -320,8 +308,6 @@ impl f32 {
320
308
/// # Examples
321
309
///
322
310
/// ```
323
- /// use std::f32;
324
- ///
325
311
/// let x = 2.0_f32;
326
312
/// let abs_difference = (x.powf(2.0) - (x * x)).abs();
327
313
///
@@ -341,8 +327,6 @@ impl f32 {
341
327
/// # Examples
342
328
///
343
329
/// ```
344
- /// use std::f32;
345
- ///
346
330
/// let positive = 4.0_f32;
347
331
/// let negative = -4.0_f32;
348
332
///
@@ -363,8 +347,6 @@ impl f32 {
363
347
/// # Examples
364
348
///
365
349
/// ```
366
- /// use std::f32;
367
- ///
368
350
/// let one = 1.0f32;
369
351
/// // e^1
370
352
/// let e = one.exp();
@@ -386,8 +368,6 @@ impl f32 {
386
368
/// # Examples
387
369
///
388
370
/// ```
389
- /// use std::f32;
390
- ///
391
371
/// let f = 2.0f32;
392
372
///
393
373
/// // 2^2 - 4 == 0
@@ -407,8 +387,6 @@ impl f32 {
407
387
/// # Examples
408
388
///
409
389
/// ```
410
- /// use std::f32;
411
- ///
412
390
/// let one = 1.0f32;
413
391
/// // e^1
414
392
/// let e = one.exp();
@@ -434,8 +412,6 @@ impl f32 {
434
412
/// # Examples
435
413
///
436
414
/// ```
437
- /// use std::f32;
438
- ///
439
415
/// let five = 5.0f32;
440
416
///
441
417
/// // log5(5) - 1 == 0
@@ -455,8 +431,6 @@ impl f32 {
455
431
/// # Examples
456
432
///
457
433
/// ```
458
- /// use std::f32;
459
- ///
460
434
/// let two = 2.0f32;
461
435
///
462
436
/// // log2(2) - 1 == 0
@@ -479,8 +453,6 @@ impl f32 {
479
453
/// # Examples
480
454
///
481
455
/// ```
482
- /// use std::f32;
483
- ///
484
456
/// let ten = 10.0f32;
485
457
///
486
458
/// // log10(10) - 1 == 0
@@ -503,8 +475,6 @@ impl f32 {
503
475
/// # Examples
504
476
///
505
477
/// ```
506
- /// use std::f32;
507
- ///
508
478
/// let x = 3.0f32;
509
479
/// let y = -3.0f32;
510
480
///
@@ -536,8 +506,6 @@ impl f32 {
536
506
/// # Examples
537
507
///
538
508
/// ```
539
- /// use std::f32;
540
- ///
541
509
/// let x = 8.0f32;
542
510
///
543
511
/// // x^(1/3) - 2 == 0
@@ -558,8 +526,6 @@ impl f32 {
558
526
/// # Examples
559
527
///
560
528
/// ```
561
- /// use std::f32;
562
- ///
563
529
/// let x = 2.0f32;
564
530
/// let y = 3.0f32;
565
531
///
@@ -686,8 +652,6 @@ impl f32 {
686
652
/// # Examples
687
653
///
688
654
/// ```
689
- /// use std::f32;
690
- ///
691
655
/// let f = 1.0f32;
692
656
///
693
657
/// // atan(tan(1))
@@ -766,8 +730,6 @@ impl f32 {
766
730
/// # Examples
767
731
///
768
732
/// ```
769
- /// use std::f32;
770
- ///
771
733
/// let x = 6.0f32;
772
734
///
773
735
/// // e^(ln(6)) - 1
@@ -881,8 +843,6 @@ impl f32 {
881
843
/// # Examples
882
844
///
883
845
/// ```
884
- /// use std::f32;
885
- ///
886
846
/// let x = 1.0f32;
887
847
/// let f = x.sinh().asinh();
888
848
///
@@ -906,8 +866,6 @@ impl f32 {
906
866
/// # Examples
907
867
///
908
868
/// ```
909
- /// use std::f32;
910
- ///
911
869
/// let x = 1.0f32;
912
870
/// let f = x.cosh().acosh();
913
871
///
0 commit comments