malachite_float/float/constants/mod.rs
1// Copyright © 2026 Mikhail Hogrefe
2//
3// This file is part of Malachite.
4//
5// Malachite is free software: you can redistribute it and/or modify it under the terms of the GNU
6// Lesser General Public License (LGPL) as published by the Free Software Foundation; either version
7// 3 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>.
8
9/// Functions for approximating $\sqrt\[3\]{2}$.
10pub mod cbrt_2;
11/// Functions for approximating $e$, Euler's number.
12pub mod e;
13/// Functions for approximating Gauss's constant, $G=1/\mathrm{AGM}(1,\sqrt{2})$.
14pub mod gauss_constant;
15/// Functions for approximating the Gelfond–Schneider constant, $2^{\sqrt 2}$.
16pub mod gelfond_schneider_constant;
17/// Functions for approximating Gelfond's constant, $e^\pi$.
18pub mod gelfonds_constant;
19/// Functions for approximating the lemniscate constant $\varpi=\pi G$, where $G$ is Gauss's
20/// constant.
21pub mod lemniscate_constant;
22/// Functions for approximating $\ln 10$.
23pub mod ln_10;
24/// Functions for approximating $\ln 2$.
25pub mod ln_2;
26/// Functions for approximating $\log_{10} 2$.
27pub mod log_10_2;
28/// Functions for approximating $\log_{10} e$.
29pub mod log_10_e;
30/// Functions for approximating $\log_2 10$.
31pub mod log_2_10;
32/// Functions for approximating $\log_2 e$.
33pub mod log_2_e;
34/// Functions for approximating $1/\pi$.
35pub mod one_over_pi;
36/// Functions for approximating $1/\sqrt{\pi}$.
37pub mod one_over_sqrt_pi;
38/// Functions for approximating $1/\sqrt{\tau}=1/\sqrt{2\pi}$.
39pub mod one_over_sqrt_tau;
40/// Functions for approximating $\varphi$, the golden ratio.
41pub mod phi;
42/// Functions for approximating $\pi$.
43pub mod pi;
44/// Functions for approximating $\pi/2$.
45pub mod pi_over_2;
46/// Functions for approximating $\pi/3$.
47pub mod pi_over_3;
48/// Functions for approximating $\pi/4$.
49pub mod pi_over_4;
50/// Functions for approximating $\pi/6$.
51pub mod pi_over_6;
52/// Functions for approximating $\pi/8$.
53pub mod pi_over_8;
54/// Functions for approximating the prime constant (the constant whose $n$th bit is 1 if and only if
55/// $n$ is prime).
56pub mod prime_constant;
57/// Functions for approximating the Prouhet-Thue-Morse constant (the constant whose bits are the
58/// Thue-Morse sequence).
59pub mod prouhet_thue_morse_constant;
60/// Functions for approximating Ramanujan's constant, $e^{\pi\sqrt{163}}$.
61pub mod ramanujans_constant;
62/// Functions for approximating $\sqrt{2}$.
63pub mod sqrt_2;
64/// Functions for approximating $\sqrt{2}/2=\sqrt{1/2}=1/\sqrt{2}$.
65pub mod sqrt_2_over_2;
66/// Functions for approximating $\sqrt{3}$.
67pub mod sqrt_3;
68/// Functions for approximating $\sqrt{3}/3=\sqrt{1/3}=1/\sqrt{3}$.
69pub mod sqrt_3_over_3;
70/// Functions for approximating $\sqrt{5}$.
71pub mod sqrt_5;
72/// Functions for approximating $\sqrt{5}/5=\sqrt{1/5}=1/\sqrt{5}$.
73pub mod sqrt_5_over_5;
74/// Functions for approximating $\sqrt{\pi}$.
75pub mod sqrt_pi;
76/// Functions for approximating $\tau=2\pi$.
77pub mod tau;
78/// Functions for approximating $2/\pi$.
79pub mod two_over_pi;
80/// Functions for approximating $2/\sqrt{\pi}$.
81pub mod two_over_sqrt_pi;