mirror of
https://git.sdf.org/epl692/pi.git
synced 2025-12-08 05:38:50 -05:00
feat: Implement multi-threaded Pi calculator
This commit introduces a new Rust program that calculates the first n digits of Pi using the BBP algorithm. The program is multi-threaded and allows the user to specify the number of threads to use. It uses the `rug` crate for arbitrary-precision arithmetic to ensure the accuracy of the calculated digits. The program can be run from the command line, taking the number of digits and the number of threads as arguments.
This commit is contained in:
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "pi"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5.4", features = ["derive"] }
|
||||
rug = "1.24.1"
|
||||
Reference in New Issue
Block a user