Crate rustedbytes_pi

Source

Functionsยง

binary_split
Compute the binary split for the Chudnovsky algorithm. This function recursively computes the values of Pab, Qab, and Rab for the given range [a, b]. The binary split method is used to optimize the computation.
chudnovsky
Compute the Chudnovsky algorithm for Pi with the specified number of iterations and digits.
chudnovsky_iterations
Calculate the number of iterations needed for the Chudnovsky algorithm to achieve the desired number of digits.
compute_pi
Compute the digits of Pi using the Chudnovsky algorithm. The result is a string representation of Pi with the specified number of digits.