/rust-pi

Computes pi, just a rust playground

Primary LanguageRust

Rust PI

Simply computes pi using Rust programming language. The goal is not to be accurate but more to play around.

Requirements

  • Rust 0.12.0

Installation

  • Run cargo build or rustc src/main.rs
  • You find the command in target/pi

Usage

Options:
    -s --steps 1000     Number of steps to compute pi [default=1000]
    -c --cpus           Number of cpus to use for the computation
    -o --optimize       Optimise the computation by using multicores
    -h --help           print this help message and exit