compute-pi-0.1.2 is not a library.
Visit the last successful build:
compute-pi-1.0.0
compute-pi
This crate provides a function to compute the value of Pi to a specified number of digits using the Gauss-Legendre algorithm.
Installation
You can include this crate in your Cargo.toml
file as follows:
[]
= "0.1.2"
Usage
To use the compute_pi
function in your Rust code, add the following to your crate root:
use Float;
use compute_pi;
Command Line Usage
You can also use the compute-pi
command from the command line. After installing the crate with
run the following command:
Replace <digits>
with the number of digits of Pi you want to compute. For example:
This will print the value of Pi to 100 decimal places.
License
This crate is licensed under the MIT license. See the LICENSE file for details.