compute-pi 0.1.1

A Rust library for computing π to a high degree of precision.
compute-pi-0.1.1 is not a library.
Visit the last successful build: compute-pi-1.0.0

Compute Pi

compute-pi is a Rust program that calculates the value of Pi using the Gauss-Legendre algorithm.

Installation

You can install this program using Rust's Cargo package manager. Run the following command:

cargo install compute-pi

Usage

Running compute-pi will display the calculated value of Pi. Here's how to use it:

compute-pi <digits>

Replace <digits> with the number of digits of Pi you want to calculate. For example, to compute Pi to 10 digits:

compute-pi 100

Example

compute-pi 100

Running the above command will display Pi to 10 decimal places.