malachite-float 0.9.1

The arbitrary-precision floating-point type Float, with efficient algorithms partially derived from MPFR.
Documentation
// 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/>.

/// Functions for approximating Gauss's constant, $G=1/\mathrm{AGM}(1,\sqrt{2})$.
pub mod gauss_constant;
/// Functions for approximating the lemniscate constant $\varpi=\pi G$, where $G$ is Gauss's
/// constant.
pub mod lemniscate_constant;
/// Functions for approximating $\ln 2$.
pub mod ln_2;
/// Functions for approximating $\log_2 e$.
pub mod log_2_e;
/// Functions for approximating $1/\pi$.
pub mod one_over_pi;
/// Functions for approximating $1/\sqrt{\pi}$.
pub mod one_over_sqrt_pi;
/// Functions for approximating $1/\sqrt{\tau}=1/\sqrt{2\pi}$.
pub mod one_over_sqrt_tau;
/// Functions for approximating $\varphi$, the golden ratio.
pub mod phi;
/// Functions for approximating $\pi$.
pub mod pi;
/// Functions for approximating $\pi/2$.
pub mod pi_over_2;
/// Functions for approximating $\pi/3$.
pub mod pi_over_3;
/// Functions for approximating $\pi/4$.
pub mod pi_over_4;
/// Functions for approximating $\pi/6$.
pub mod pi_over_6;
/// Functions for approximating $\pi/8$.
pub mod pi_over_8;
/// Functions for approximating the prime constant (the constant whose $n$th bit is 1 if and only if
/// $n$ is prime).
pub mod prime_constant;
/// Functions for approximating the Prouhet-Thue-Morse constant (the constant whose bits are the
/// Thue-Morse sequence).
pub mod prouhet_thue_morse_constant;
/// Functions for approximating $\sqrt{2}$.
pub mod sqrt_2;
/// Functions for approximating $\sqrt{2}/2=\sqrt{1/2}=1/\sqrt{2}$.
pub mod sqrt_2_over_2;
/// Functions for approximating $\sqrt{3}$.
pub mod sqrt_3;
/// Functions for approximating $\sqrt{3}/3=\sqrt{1/3}=1/\sqrt{3}$.
pub mod sqrt_3_over_3;
/// Functions for approximating $\sqrt{\pi}$.
pub mod sqrt_pi;
/// Functions for approximating $\tau=2\pi$.
pub mod tau;
/// Functions for approximating $2/\pi$.
pub mod two_over_pi;
/// Functions for approximating $2/\sqrt{\pi}$.
pub mod two_over_sqrt_pi;