malachite-float 0.13.0

The arbitrary-precision floating-point type Float, with efficient algorithms partially derived from MPFR.
Documentation
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
// Copyright © 2026 Mikhail Hogrefe
//
// This file is part of Malachite.
//
// Malachite is free software: you can redistribute it and/or modify it under the terms of the GNU
// Lesser General Public License (LGPL) as published by the Free Software Foundation; either version
// 3 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>.

/// Absolute value of [`Float`](super::Float)s.
pub mod abs;
/// Implementations of [`AbsSquared`](malachite_base::num::arithmetic::traits::AbsSquared) and
/// [`AbsSquaredAssign`](malachite_base::num::arithmetic::traits::AbsSquaredAssign), traits for
/// computing the squared absolute value of a number. For real types this is the same as squaring.
pub mod abs_squared;
/// Implementations of [`Acos`](malachite_base::num::arithmetic::traits::Acos) and
/// [`AcosAssign`](malachite_base::num::arithmetic::traits::AcosAssign), traits for computing the
/// arccosine of [`Float`](super::Float)s.
pub mod acos;
/// Implementations of [`Acosh`](malachite_base::num::arithmetic::traits::Acosh) and
/// [`AcoshAssign`](malachite_base::num::arithmetic::traits::AcoshAssign), traits for computing the
/// inverse hyperbolic cosine of [`Float`](super::Float)s.
pub mod acosh;
pub mod acot;
/// Implementations of [`Acoth`](malachite_base::num::arithmetic::traits::Acoth) and
/// [`AcothAssign`](malachite_base::num::arithmetic::traits::AcothAssign), traits for computing the
/// inverse hyperbolic cotangent of [`Float`](super::Float)s.
pub mod acoth;
pub mod acsc;
/// Implementations of [`Acsch`](malachite_base::num::arithmetic::traits::Acsch) and
/// [`AcschAssign`](malachite_base::num::arithmetic::traits::AcschAssign), traits for computing the
/// inverse hyperbolic cosecant of [`Float`](super::Float)s.
pub mod acsch;
/// Addition of [`Float`](super::Float)s, and of [`Float`](super::Float)s with
/// [`Rational`](malachite_q::Rational)s.
pub mod add;
/// [`AddMul`](malachite_base::num::arithmetic::traits::AddMul) and
/// [`AddMulAssign`](malachite_base::num::arithmetic::traits::AddMulAssign), traits for adding a
/// [`Float`](super::Float) and the product of two other [`Float`](super::Float)s — or of a
/// [`Float`](super::Float) and a [`Rational`](malachite_q::Rational) — with a single rounding
/// (fused multiply-add), and the associated precision- and rounding-mode-aware functions.
pub mod add_mul;
/// Taking the AGM (arithmetic-geometric mean) of two [`Float`](super::Float)s, and of
/// [`Float`](super::Float)s with [`Rational`](malachite_q::Rational)s.
pub mod agm;
/// Implementations of [`Asec`](malachite_base::num::arithmetic::traits::Asec) and
/// [`AsecAssign`](malachite_base::num::arithmetic::traits::AsecAssign), traits for computing the
/// arcsecant of [`Float`](super::Float)s.
pub mod asec;
/// Implementations of [`Asech`](malachite_base::num::arithmetic::traits::Asech) and
/// [`AsechAssign`](malachite_base::num::arithmetic::traits::AsechAssign), traits for computing the
/// inverse hyperbolic secant of [`Float`](super::Float)s.
pub mod asech;
/// Implementations of [`Asin`](malachite_base::num::arithmetic::traits::Asin) and
/// [`AsinAssign`](malachite_base::num::arithmetic::traits::AsinAssign), traits for computing the
/// arcsine of [`Float`](super::Float)s.
pub mod asin;
/// Implementations of [`Asinh`](malachite_base::num::arithmetic::traits::Asinh) and
/// [`AsinhAssign`](malachite_base::num::arithmetic::traits::AsinhAssign), traits for computing the
/// inverse hyperbolic sine of [`Float`](super::Float)s.
pub mod asinh;
/// Implementations of [`Atan`](malachite_base::num::arithmetic::traits::Atan) and
/// [`AtanAssign`](malachite_base::num::arithmetic::traits::AtanAssign), traits for computing the
/// arctangent of [`Float`](super::Float)s.
pub mod atan;
/// Implementations of [`Atan2`](malachite_base::num::arithmetic::traits::Atan2) and
/// [`Atan2Assign`](malachite_base::num::arithmetic::traits::Atan2Assign), traits for computing the
/// angle of a point given by two [`Float`](super::Float) coordinates.
pub mod atan2;
/// Implementations of [`Atanh`](malachite_base::num::arithmetic::traits::Atanh) and
/// [`AtanhAssign`](malachite_base::num::arithmetic::traits::AtanhAssign), traits for computing the
/// inverse hyperbolic tangent of [`Float`](super::Float)s.
pub mod atanh;
/// [`Average`](malachite_base::num::arithmetic::traits::Average) and
/// [`AverageAssign`](malachite_base::num::arithmetic::traits::AverageAssign), traits for computing
/// the average (arithmetic mean) of two numbers, and the associated precision- and
/// rounding-mode-aware functions.
///
/// # average
/// ```
/// use malachite_base::num::arithmetic::traits::Average;
/// use malachite_float::Float;
///
/// assert_eq!(Float::from(1.5).average(Float::from(2.5)), 2.0);
/// assert_eq!((&Float::from(1.5)).average(&Float::from(2.5)), 2.0);
/// // the output precision is the maximum of the inputs', so the average of two one-bit
/// // `Float`s is itself rounded to one bit, here to the even neighbor
/// assert_eq!(Float::from(1.0).average(Float::from(2.0)), 2.0);
/// // the sum would overflow, but the average is in range
/// let max = Float::max_finite_value_with_prec(10);
/// assert_eq!((&max).average(&max), max);
/// ```
///
/// # average_assign
/// ```
/// use malachite_base::num::arithmetic::traits::AverageAssign;
/// use malachite_float::Float;
///
/// let mut x = Float::from(1.5);
/// x.average_assign(Float::from(2.5));
/// assert_eq!(x, 2.0);
/// ```
///
/// # average_prec_round
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// // the exact average of 1 and 2 is 1.5, which needs 2 bits
/// let (avg, o) = Float::from(1.0).average_prec_round(Float::from(2.0), 2, Exact);
/// assert_eq!(avg, 1.5);
/// assert_eq!(o, Equal);
///
/// // at one bit it must be rounded
/// let (avg, o) = Float::from(1.0).average_prec_round(Float::from(2.0), 1, Floor);
/// assert_eq!(avg, 1.0);
/// assert_eq!(o, Less);
/// let (avg, o) = Float::from(1.0).average_prec_round(Float::from(2.0), 1, Ceiling);
/// assert_eq!(avg, 2.0);
/// assert_eq!(o, Greater);
/// ```
///
/// # average_prec
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (avg, o) = Float::from(1.0).average_prec(Float::from(2.0), 10);
/// assert_eq!(avg, 1.5);
/// assert_eq!(o, Equal);
/// ```
///
/// # average_round
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// // the output precision is the maximum of the inputs' precisions
/// let (avg, o) = Float::from(1.5).average_round(Float::from(2.5), Nearest);
/// assert_eq!(avg, 2.0);
/// assert_eq!(o, Equal);
/// ```
///
/// # average_prec_round_assign
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(1.0);
/// assert_eq!(
///     x.average_prec_round_assign(Float::from(2.0), 1, Floor),
///     Less
/// );
/// assert_eq!(x, 1.0);
///
/// let mut x = Float::from(1.0);
/// assert_eq!(
///     x.average_prec_round_assign_ref(&Float::from(2.0), 2, Exact),
///     Equal
/// );
/// assert_eq!(x, 1.5);
/// ```
///
/// # average_prec_assign
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(1.0);
/// assert_eq!(x.average_prec_assign(Float::from(2.0), 10), Equal);
/// assert_eq!(x, 1.5);
///
/// let mut x = Float::from(1.0);
/// assert_eq!(x.average_prec_assign_ref(&Float::from(2.0), 10), Equal);
/// assert_eq!(x, 1.5);
/// ```
///
/// # average_round_assign
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(1.5);
/// assert_eq!(x.average_round_assign(Float::from(2.5), Nearest), Equal);
/// assert_eq!(x, 2.0);
///
/// let mut x = Float::from(1.5);
/// assert_eq!(
///     x.average_round_assign_ref(&Float::from(2.5), Nearest),
///     Equal
/// );
/// assert_eq!(x, 2.0);
/// ```
pub mod average;
/// An implementation of
/// [`CanonicalUnitIPow`](malachite_base::num::arithmetic::traits::CanonicalUnitIPow), a trait for
/// finding the power of $i$ that brings a number into canonical unit form.
pub mod canonical_unit_i_pow;
/// Implementations of
/// [`CanonicalizeUnit`](malachite_base::num::arithmetic::traits::CanonicalizeUnit) and
/// [`CanonicalizeUnitAssign`](malachite_base::num::arithmetic::traits::CanonicalizeUnitAssign),
/// traits for bringing a number into canonical unit form.
pub mod canonicalize_unit;
/// Cube root of [`Float`](super::Float)s and of [`Rational`](malachite_q::Rational)s.
pub mod cbrt;
/// [`Compound`](malachite_base::num::arithmetic::traits::Compound) and
/// [`CompoundAssign`](malachite_base::num::arithmetic::traits::CompoundAssign), traits for
/// computing the compound function $(1+x)^n$ for [`Float`](super::Float)s.
pub mod compound;
/// Implementations of [`Conjugate`](malachite_base::num::arithmetic::traits::Conjugate) and
/// [`ConjugateAssign`](malachite_base::num::arithmetic::traits::ConjugateAssign), traits for
/// computing the complex conjugate of a number. A real number is its own conjugate.
pub mod conjugate;
/// Implementations of [`Cos`](malachite_base::num::arithmetic::traits::Cos) and
/// [`CosAssign`](malachite_base::num::arithmetic::traits::CosAssign), traits for computing the
/// cosine of [`Float`](super::Float)s.
pub mod cos;
/// Implementations of [`Cosh`](malachite_base::num::arithmetic::traits::Cosh) and
/// [`CoshAssign`](malachite_base::num::arithmetic::traits::CoshAssign), traits for computing the
/// hyperbolic cosine of [`Float`](super::Float)s.
pub mod cosh;
/// Implementations of [`Cot`](malachite_base::num::arithmetic::traits::Cot) and
/// [`CotAssign`](malachite_base::num::arithmetic::traits::CotAssign), traits for computing the
/// cotangent of [`Float`](super::Float)s.
pub mod cot;
/// Implementations of [`Coth`](malachite_base::num::arithmetic::traits::Coth) and
/// [`CothAssign`](malachite_base::num::arithmetic::traits::CothAssign), traits for computing the
/// hyperbolic cotangent of [`Float`](super::Float)s.
pub mod coth;
/// Implementations of [`Csc`](malachite_base::num::arithmetic::traits::Csc) and
/// [`CscAssign`](malachite_base::num::arithmetic::traits::CscAssign), traits for computing the
/// cosecant of [`Float`](super::Float)s.
pub mod csc;
/// Implementations of [`Csch`](malachite_base::num::arithmetic::traits::Csch) and
/// [`CschAssign`](malachite_base::num::arithmetic::traits::CschAssign), traits for computing the
/// hyperbolic cosecant of [`Float`](super::Float)s.
pub mod csch;
/// Division of [`Float`](super::Float)s, of [`Float`](super::Float)s by
/// [`Rational`](malachite_q::Rational)s, and of [`Rational`](malachite_q::Rational)s by
/// [`Float`](super::Float)s.
pub mod div;
/// Correctly-rounded dot products of [`Float`](super::Float) slices, with the products computed
/// exactly and a single rounding at the end, so that intermediate overflow and underflow cannot
/// occur.
pub mod dot;
/// [`Exp`](malachite_base::num::arithmetic::traits::Exp) and
/// [`ExpAssign`](malachite_base::num::arithmetic::traits::ExpAssign), traits for computing $e^x$
/// for [`Float`](super::Float)s.
pub mod exp;
/// [`ExpXMinus1`](malachite_base::num::arithmetic::traits::ExpXMinus1) and
/// [`ExpXMinus1Assign`](malachite_base::num::arithmetic::traits::ExpXMinus1Assign), traits for
/// computing $e^x-1$ for [`Float`](super::Float)s.
pub mod exp_x_minus_1;
/// [`factorial_prec_round`](super::Float::factorial_prec_round) and
/// [`factorial_prec`](super::Float::factorial_prec), for computing correctly-rounded factorials.
pub mod factorial;
/// Fractional parts of [`Float`](super::Float)s: the `fractional_part` and
/// `integer_and_fractional_parts` families.
pub mod fractional_part;
/// [`Hypot`](malachite_base::num::arithmetic::traits::Hypot) and
/// [`HypotAssign`](malachite_base::num::arithmetic::traits::HypotAssign), traits for computing the
/// hypotenuse of two numbers, $\sqrt{x^2+y^2}$.
///
/// # hypot
/// ```
/// use core::f64::consts::{E, PI};
/// use malachite_base::num::arithmetic::traits::Hypot;
/// use malachite_float::Float;
///
/// assert_eq!(
///     Float::from(PI).hypot(Float::from(E)).to_string(),
///     "4.1543544023133130"
/// );
/// ```
pub mod hypot;
/// An implementation of [`IsPowerOf2`](malachite_base::num::arithmetic::traits::IsPowerOf2), a
/// trait for determining whether a number is an integer power of 2.
pub mod is_power_of_2;
/// An implementation of [`IsUnit`](malachite_base::num::arithmetic::traits::IsUnit), a trait for
/// determining whether a number is a unit of its ring.
pub mod is_unit;
/// [`Ln`](malachite_base::num::arithmetic::traits::Ln) and
/// [`LnAssign`](malachite_base::num::arithmetic::traits::LnAssign), traits for computing the
/// natural logarithm of [`Float`](super::Float)s.
pub mod ln;
/// [`Ln1PlusX`](malachite_base::num::arithmetic::traits::Ln1PlusX) and
/// [`Ln1PlusXAssign`](malachite_base::num::arithmetic::traits::Ln1PlusXAssign), traits for
/// computing $\ln(1+x)$ for [`Float`](super::Float)s.
pub mod ln_1_plus_x;
/// [`LogBase`](malachite_base::num::arithmetic::traits::LogBase) and
/// [`LogBaseAssign`](malachite_base::num::arithmetic::traits::LogBaseAssign), traits for computing
/// the base-$b$ logarithm of [`Float`](super::Float)s for an arbitrary integer base $b>1$.
pub mod log_base;
/// [`LogBase10`](malachite_base::num::arithmetic::traits::LogBase10) and
/// [`LogBase10Assign`](malachite_base::num::arithmetic::traits::LogBase10Assign), traits for
/// computing the base-10 logarithm of [`Float`](super::Float)s.
pub mod log_base_10;
/// [`LogBase10Of1PlusX`](malachite_base::num::arithmetic::traits::LogBase10Of1PlusX) and
/// [`LogBase10Of1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBase10Of1PlusXAssign),
/// traits for computing $\log_{10}(1+x)$ of [`Float`](super::Float)s.
pub mod log_base_10_1_plus_x;
/// [`LogBaseOf1PlusX`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusX) and
/// [`LogBaseOf1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusXAssign),
/// traits for computing $\log_b(1+x)$ of [`Float`](super::Float)s for an arbitrary integer base
/// $b>1$.
pub mod log_base_1_plus_x;
/// [`LogBase2`](malachite_base::num::arithmetic::traits::LogBase2) and
/// [`LogBase2Assign`](malachite_base::num::arithmetic::traits::LogBase2Assign), traits for
/// computing the base-2 logarithm of [`Float`](super::Float)s.
pub mod log_base_2;
/// [`LogBase2Of1PlusX`](malachite_base::num::arithmetic::traits::LogBase2Of1PlusX) and
/// [`LogBase2Of1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBase2Of1PlusXAssign),
/// traits for computing $\log_2(1+x)$ for [`Float`](super::Float)s.
pub mod log_base_2_1_plus_x;
/// [`LogBase`](malachite_base::num::arithmetic::traits::LogBase) and
/// [`LogBaseAssign`](malachite_base::num::arithmetic::traits::LogBaseAssign), implemented for a
/// [`Float`](super::Float) base, for computing $\log_b x$ of a [`Float`](super::Float) with an
/// arbitrary [`Float`](super::Float) base.
pub mod log_base_float_base;
/// [`LogBaseOf1PlusX`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusX) and
/// [`LogBaseOf1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusXAssign),
/// implemented for a [`Float`](super::Float) base, for computing $\log_b(1+x)$ of a
/// [`Float`](super::Float) with an arbitrary [`Float`](super::Float) base.
pub mod log_base_float_base_1_plus_x;
/// [`LogBasePowerOf2`](malachite_base::num::arithmetic::traits::LogBasePowerOf2) and
/// [`LogBasePowerOf2Assign`](malachite_base::num::arithmetic::traits::LogBasePowerOf2Assign),
/// traits for computing $\log_{2^k} x$ for [`Float`](super::Float)s.
pub mod log_base_power_of_2;
/// [`LogBasePowerOf2Of1PlusX`](malachite_base::num::arithmetic::traits::LogBasePowerOf2Of1PlusX)
/// and
/// [`LogBasePowerOf2Of1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBasePowerOf2Of1PlusXAssign),
/// traits for computing $\log_{2^k}(1+x)$ for [`Float`](super::Float)s.
#[cfg_attr(dylint_lib = "malachite_lints", expect(long_lines))]
pub mod log_base_power_of_2_1_plus_x;
/// [`LogBase`](malachite_base::num::arithmetic::traits::LogBase) and
/// [`LogBaseAssign`](malachite_base::num::arithmetic::traits::LogBaseAssign), implemented for a
/// [`Rational`](malachite_q::Rational) base, for computing $\log_b x$ of a [`Float`](super::Float)
/// with an arbitrary rational base $b>1$.
pub mod log_base_rational_base;
/// [`LogBaseOf1PlusX`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusX) and
/// [`LogBaseOf1PlusXAssign`](malachite_base::num::arithmetic::traits::LogBaseOf1PlusXAssign),
/// implemented for a [`Rational`](malachite_q::Rational) base, for computing $\log_b(1+x)$ of a
/// [`Float`](super::Float) with an arbitrary rational base $b>1$.
pub mod log_base_rational_base_1_plus_x;
/// Functions for computing $\log_b x$ of a [`Rational`](malachite_q::Rational) $x$ with an
/// arbitrary [`Float`](super::Float) base, returning a [`Float`](super::Float).
pub mod log_base_rational_float_base;
/// Functions for computing $\log_b x$ of a [`Rational`](malachite_q::Rational) $x$ with an
/// arbitrary [`Rational`](malachite_q::Rational) base $b>1$, returning a [`Float`](super::Float).
pub mod log_base_rational_rational_base;
/// Multiplication of [`Float`](super::Float)s, and of [`Float`](super::Float)s with
/// [`Rational`](malachite_q::Rational)s.
pub mod mul;
/// [`MulAddMul`](malachite_base::num::arithmetic::traits::MulAddMul) and
/// [`MulAddMulAssign`](malachite_base::num::arithmetic::traits::MulAddMulAssign), traits for adding
/// the products of two pairs of [`Float`](super::Float)s with a single rounding, and the associated
/// precision- and rounding-mode-aware functions.
pub mod mul_add_mul;
/// [`MulSubMul`](malachite_base::num::arithmetic::traits::MulSubMul) and
/// [`MulSubMulAssign`](malachite_base::num::arithmetic::traits::MulSubMulAssign), traits for
/// subtracting the product of one pair of [`Float`](super::Float)s from the product of another pair
/// with a single rounding, and the associated precision- and rounding-mode-aware functions.
pub mod mul_sub_mul;
/// Negation of [`Float`](super::Float)s.
pub mod neg;
/// [`positive_difference_prec_round`](super::Float::positive_difference_prec_round) and related
/// functions, for computing positive differences of [`Float`](super::Float)s.
pub mod positive_difference;
/// Implementations of [`PowerOf2`](malachite_base::num::arithmetic::traits::PowerOf2), a trait for
/// computing a power of 2.
pub mod pow;
/// An implementation of [`PowerOf2`](malachite_base::num::arithmetic::traits::PowerOf2) with a
/// [`Float`](super::Float) exponent, computing $2^x$ for [`Float`](super::Float)s.
pub mod power_of_10;
pub mod power_of_10_x_minus_1;
pub mod power_of_2;
pub mod power_of_2_of_float;
/// Implementations of [`PowerOf2XMinus1`](malachite_base::num::arithmetic::traits::PowerOf2XMinus1)
/// and [`PowerOf2XMinus1Assign`](malachite_base::num::arithmetic::traits::PowerOf2XMinus1Assign),
/// traits for computing $2^x-1$.
pub mod power_of_2_x_minus_1;
/// Correctly-rounded multiplication of any number of [`Float`](super::Float)s: functions computing
/// a slice's product with a single rounding at the end, and the [`Product`](core::iter::Product)
/// implementations built on them.
pub mod product;
/// Implementations of [`Reciprocal`](malachite_base::num::arithmetic::traits::Reciprocal) and
/// [`ReciprocalAssign`](malachite_base::num::arithmetic::traits::ReciprocalAssign), traits for
/// computing the reciprocal of a number.
pub mod reciprocal;
/// [`ReciprocalSqrt`](malachite_base::num::arithmetic::traits::ReciprocalSqrt) and
/// [`ReciprocalSqrtAssign`](malachite_base::num::arithmetic::traits::ReciprocalSqrtAssign), traits
/// for computing the reciprocal of the square root of [`Float`](super::Float)s.
pub mod reciprocal_sqrt;
/// [`rem_prec_round`](super::Float::rem_prec_round) and related functions, for computing
/// floating-point remainders of [`Float`](super::Float)s.
pub mod rem;
/// [`root_u_prec_round`](super::Float::root_u_prec_round) and related functions, for computing
/// roots of [`Float`](super::Float)s.
pub mod root;
pub(crate) mod round_near_x;
pub mod round_to_integer;
/// Implementations of [`Sec`](malachite_base::num::arithmetic::traits::Sec) and
/// [`SecAssign`](malachite_base::num::arithmetic::traits::SecAssign), traits for computing the
/// secant of [`Float`](super::Float)s.
pub mod sec;
/// Implementations of [`Sech`](malachite_base::num::arithmetic::traits::Sech) and
/// [`SechAssign`](malachite_base::num::arithmetic::traits::SechAssign), traits for computing the
/// hyperbolic secant of [`Float`](super::Float)s.
pub mod sech;
/// Left-shifting a [`Float`](super::Float) (multiplying it by a power of 2).
///
/// # shl
/// ```
/// use malachite_base::num::basic::traits::{Infinity, Zero};
/// use malachite_float::Float;
///
/// assert_eq!(Float::ZERO << 10, 0);
/// assert_eq!(Float::INFINITY << 10, Float::INFINITY);
/// assert_eq!(
///     (Float::from(std::f64::consts::PI) << 10u8).to_string(),
///     "3216.9908772759482"
/// );
/// assert_eq!(
///     (Float::from(std::f64::consts::PI) << -10i8).to_string(),
///     "0.0030679615757712823"
/// );
///
/// assert_eq!(&Float::ZERO << 10, 0);
/// assert_eq!(&Float::INFINITY << 10, Float::INFINITY);
/// assert_eq!(
///     (&Float::from(std::f64::consts::PI) << 10u8).to_string(),
///     "3216.9908772759482"
/// );
/// assert_eq!(
///     (&Float::from(std::f64::consts::PI) << -10i8).to_string(),
///     "0.0030679615757712823"
/// );
/// ```
///
/// # shl_assign
/// ```
/// use malachite_base::num::basic::traits::{Infinity, Zero};
/// use malachite_float::Float;
///
/// let mut x = Float::ZERO;
/// x <<= 10;
/// assert_eq!(x, 0);
///
/// let mut x = Float::INFINITY;
/// x <<= 10;
/// assert_eq!(x, Float::INFINITY);
///
/// let mut x = Float::from(std::f64::consts::PI);
/// x <<= 10;
/// assert_eq!(x.to_string(), "3216.9908772759482");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// x <<= -10;
/// assert_eq!(x.to_string(), "0.0030679615757712823");
/// ```
pub mod shl;
/// Implementations of [`ShlRound`](malachite_base::num::arithmetic::traits::ShlRound) and
/// [`ShlRoundAssign`](malachite_base::num::arithmetic::traits::ShlRoundAssign), traits for
/// multiplying a number by a power of 2 and rounding according to a specified
/// [`RoundingMode`](malachite_base::rounding_modes::RoundingMode). For [`Float`](super::Float)s,
/// rounding is only necessary in the cases of overflow and underflow.
///
/// # shl_prec_round
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round(10u8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round(-10i8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round(u32::MAX, 10, Floor);
/// assert_eq!(shifted.to_string(), "2.0965e323228496");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round(u32::MAX, 10, Ceiling);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round_ref(10u8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round_ref(-10i8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round_ref(u32::MAX, 10, Floor);
/// assert_eq!(shifted.to_string(), "2.0965e323228496");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_round_ref(u32::MAX, 10, Ceiling);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
/// ```
///
/// # shl_prec_round_assign
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_round_assign(10u8, 10, Nearest), Less);
/// assert_eq!(x.to_string(), "3216.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_round_assign(-10i8, 10, Nearest), Less);
/// assert_eq!(x.to_string(), "0.0030670");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_round_assign(u32::MAX, 10, Floor), Less);
/// assert_eq!(x.to_string(), "2.0965e323228496");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_round_assign(u32::MAX, 10, Ceiling), Greater);
/// assert_eq!(x.to_string(), "Infinity");
/// ```
///
/// # shl_prec
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec(10u8, 10);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec(-10i8, 10);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec(u32::MAX, 10);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_ref(10u8, 10);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_ref(-10i8, 10);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_prec_ref(u32::MAX, 10);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
/// ```
///
/// # shl_prec_assign
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_assign(10u8, 10), Less);
/// assert_eq!(x.to_string(), "3216.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_assign(-10i8, 10), Less);
/// assert_eq!(x.to_string(), "0.0030670");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_prec_assign(u32::MAX, 10), Greater);
/// assert_eq!(x.to_string(), "Infinity");
/// ```
///
/// # shl_round
/// ```
/// use malachite_base::num::arithmetic::traits::ShlRound;
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_round(10u8, Nearest);
/// assert_eq!(shifted.to_string(), "3216.9908772759482");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_round(-10i8, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030679615757712823");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_round(u32::MAX, Floor);
/// assert_eq!(shifted.to_string(), "2.0985787164673858e323228496");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shl_round(u32::MAX, Ceiling);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shl_round(10u8, Nearest);
/// assert_eq!(shifted.to_string(), "3216.9908772759482");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shl_round(-10i8, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030679615757712823");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shl_round(u32::MAX, Floor);
/// assert_eq!(shifted.to_string(), "2.0985787164673858e323228496");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shl_round(u32::MAX, Ceiling);
/// assert_eq!(shifted.to_string(), "Infinity");
/// assert_eq!(o, Greater);
/// ```
///
/// # shl_round_assign
/// ```
/// use malachite_base::num::arithmetic::traits::ShlRoundAssign;
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_round_assign(10u8, Nearest), Equal);
/// assert_eq!(x.to_string(), "3216.9908772759482");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_round_assign(-10i8, Nearest), Equal);
/// assert_eq!(x.to_string(), "0.0030679615757712823");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_round_assign(u32::MAX, Floor), Less);
/// assert_eq!(x.to_string(), "2.0985787164673858e323228496");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shl_round_assign(u32::MAX, Ceiling), Greater);
/// assert_eq!(x.to_string(), "Infinity");
/// ```
pub mod shl_round;
/// Right-shifting a [`Float`](super::Float) (dividing it by a power of 2).
///
/// # shr
/// ```
/// use malachite_base::num::basic::traits::{Infinity, Zero};
/// use malachite_float::Float;
///
/// assert_eq!(Float::ZERO >> 10, 0);
/// assert_eq!(Float::INFINITY >> 10, Float::INFINITY);
/// assert_eq!(
///     (Float::from(std::f64::consts::PI) >> 10u8).to_string(),
///     "0.0030679615757712823"
/// );
/// assert_eq!(
///     (Float::from(std::f64::consts::PI) >> -10i8).to_string(),
///     "3216.9908772759482"
/// );
///
/// assert_eq!(&Float::ZERO >> 10, 0);
/// assert_eq!(&Float::INFINITY >> 10, Float::INFINITY);
/// assert_eq!(
///     (&Float::from(std::f64::consts::PI) >> 10u8).to_string(),
///     "0.0030679615757712823"
/// );
/// assert_eq!(
///     (&Float::from(std::f64::consts::PI) >> -10i8).to_string(),
///     "3216.9908772759482"
/// );
/// ```
///
/// # shr_assign
/// ```
/// use malachite_base::num::basic::traits::{Infinity, Zero};
/// use malachite_float::Float;
///
/// let mut x = Float::ZERO;
/// x >>= 10;
/// assert_eq!(x, 0);
///
/// let mut x = Float::INFINITY;
/// x >>= 10;
/// assert_eq!(x, Float::INFINITY);
///
/// let mut x = Float::from(std::f64::consts::PI);
/// x >>= 10;
/// assert_eq!(x.to_string(), "0.0030679615757712823");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// x >>= -10;
/// assert_eq!(x.to_string(), "3216.9908772759482");
/// ```
pub mod shr;
/// Implementations of [`ShlRound`](malachite_base::num::arithmetic::traits::ShrRound) and
/// [`ShrRoundAssign`](malachite_base::num::arithmetic::traits::ShrRoundAssign), traits for dividing
/// a number by a power of 2 and rounding according to a specified
/// [`RoundingMode`](malachite_base::rounding_modes::RoundingMode). For [`Float`](super::Float)s,
/// rounding is only necessary in the cases of overflow and underflow.
///
/// # shr_prec_round
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round(10u8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round(-10i8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round(u32::MAX, 10, Floor);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round(u32::MAX, 10, Ceiling);
/// assert_eq!(shifted.to_string(), "2.3826e-323228497");
/// assert_eq!(o, Greater);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round_ref(10u8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round_ref(-10i8, 10, Nearest);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round_ref(u32::MAX, 10, Floor);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_round_ref(u32::MAX, 10, Ceiling);
/// assert_eq!(shifted.to_string(), "2.3826e-323228497");
/// assert_eq!(o, Greater);
/// ```
///
/// # shr_prec_round_assign
/// ```
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_round_assign(10u8, 10, Nearest), Less);
/// assert_eq!(x.to_string(), "0.0030670");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_round_assign(-10i8, 10, Nearest), Less);
/// assert_eq!(x.to_string(), "3216.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_round_assign(u32::MAX, 10, Floor), Less);
/// assert_eq!(x.to_string(), "0.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_round_assign(u32::MAX, 10, Ceiling), Greater);
/// assert_eq!(x.to_string(), "2.3826e-323228497");
/// ```
///
/// # shr_prec
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec(10u8, 10);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec(-10i8, 10);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec(u32::MAX, 10);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_ref(10u8, 10);
/// assert_eq!(shifted.to_string(), "0.0030670");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_ref(-10i8, 10);
/// assert_eq!(shifted.to_string(), "3216.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_prec_ref(u32::MAX, 10);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
/// ```
///
/// # shr_prec_assign
/// ```
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_assign(10u8, 10), Less);
/// assert_eq!(x.to_string(), "0.0030670");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_assign(-10i8, 10), Less);
/// assert_eq!(x.to_string(), "3216.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_prec_assign(u32::MAX, 10), Less);
/// assert_eq!(x.to_string(), "0.0");
/// ```
///
/// # shr_round
/// ```
/// use malachite_base::num::arithmetic::traits::ShrRound;
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_round(10u8, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030679615757712823");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_round(-10i8, Nearest);
/// assert_eq!(shifted.to_string(), "3216.9908772759482");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_round(u32::MAX, Floor);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = Float::from(std::f64::consts::PI).shr_round(u32::MAX, Ceiling);
/// assert_eq!(shifted.to_string(), "2.3825649048879511e-323228497");
/// assert_eq!(o, Greater);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shr_round(10u8, Nearest);
/// assert_eq!(shifted.to_string(), "0.0030679615757712823");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shr_round(-10i8, Nearest);
/// assert_eq!(shifted.to_string(), "3216.9908772759482");
/// assert_eq!(o, Equal);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shr_round(u32::MAX, Floor);
/// assert_eq!(shifted.to_string(), "0.0");
/// assert_eq!(o, Less);
///
/// let (shifted, o) = (&Float::from(std::f64::consts::PI)).shr_round(u32::MAX, Ceiling);
/// assert_eq!(shifted.to_string(), "2.3825649048879511e-323228497");
/// assert_eq!(o, Greater);
/// ```
///
/// # shr_round_assign
/// ```
/// use malachite_base::num::arithmetic::traits::ShrRoundAssign;
/// use malachite_base::rounding_modes::RoundingMode::*;
/// use malachite_float::Float;
/// use std::cmp::Ordering::*;
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_round_assign(10u8, Nearest), Equal);
/// assert_eq!(x.to_string(), "0.0030679615757712823");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_round_assign(-10i8, Nearest), Equal);
/// assert_eq!(x.to_string(), "3216.9908772759482");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_round_assign(u32::MAX, Floor), Less);
/// assert_eq!(x.to_string(), "0.0");
///
/// let mut x = Float::from(std::f64::consts::PI);
/// assert_eq!(x.shr_round_assign(u32::MAX, Ceiling), Greater);
/// assert_eq!(x.to_string(), "2.3825649048879511e-323228497");
/// ```
pub mod shr_round;
/// An implementation of [`Sign`](malachite_base::num::arithmetic::traits::Sign), a trait for
/// determining the sign of a number.
pub mod sign;
/// Implementations of [`Sin`](malachite_base::num::arithmetic::traits::Sin) and
/// [`SinAssign`](malachite_base::num::arithmetic::traits::SinAssign), traits for computing the sine
/// of [`Float`](super::Float)s.
pub mod sin;
/// Implementations of [`SinCos`](malachite_base::num::arithmetic::traits::SinCos) and
/// [`SinCosAssign`](malachite_base::num::arithmetic::traits::SinCosAssign), traits for computing
/// the sine and cosine of [`Float`](super::Float)s together.
pub mod sin_cos;
/// Implementations of [`Sinh`](malachite_base::num::arithmetic::traits::Sinh) and
/// [`SinhAssign`](malachite_base::num::arithmetic::traits::SinhAssign), traits for computing the
/// hyperbolic sine of [`Float`](super::Float)s.
pub mod sinh;
/// Implementations of [`SinhCosh`](malachite_base::num::arithmetic::traits::SinhCosh) and
/// [`SinhCoshAssign`](malachite_base::num::arithmetic::traits::SinhCoshAssign), traits for
/// computing the hyperbolic sine and cosine of [`Float`](super::Float)s together.
pub mod sinh_cosh;
/// [`Sqrt`](malachite_base::num::arithmetic::traits::Sqrt) and
/// [`SqrtAssign`](malachite_base::num::arithmetic::traits::SqrtAssign), traits for computing the
/// square root of [`Float`](super::Float)s.
pub mod sqrt;
/// Squaring of [`Float`](super::Float)s.
pub mod square;
/// Subtraction of [`Float`](super::Float)s, of [`Float`](super::Float)s by
/// [`Rational`](malachite_q::Rational)s, and of [`Rational`](malachite_q::Rational)s by
/// [`Float`](super::Float)s.
pub mod sub;
/// [`SubMul`](malachite_base::num::arithmetic::traits::SubMul) and
/// [`SubMulAssign`](malachite_base::num::arithmetic::traits::SubMulAssign), traits for subtracting
/// the product of two [`Float`](super::Float)s — or of a [`Float`](super::Float) and a
/// [`Rational`](malachite_q::Rational) — from another [`Float`](super::Float) with a single
/// rounding (fused multiply-subtract), and the associated precision- and rounding-mode-aware
/// functions.
pub mod sub_mul;
/// Correctly-rounded summation of any number of [`Float`](super::Float)s: functions computing a
/// slice's sum with a single rounding at the end, and the [`Sum`](core::iter::Sum) implementations
/// built on them.
pub mod sum;
pub mod tan;
/// Implementations of [`Tanh`](malachite_base::num::arithmetic::traits::Tanh) and
/// [`TanhAssign`](malachite_base::num::arithmetic::traits::TanhAssign), traits for computing the
/// hyperbolic tangent of [`Float`](super::Float)s.
pub mod tanh;