/CalculatePi

A Java console application to calculate Pi using Ramanujan's formula

Primary LanguageJava

CalculatePi

A Java console application to calculate Pi using Ramanujan's formula

The formula used in this application is Ramanujan 2. For more info click here

Running the application

  1. Download .jar file from out/artifacts/CalculatePi_jar

  2. Run command: java -jar CalculatePi.jar -p <precision> -t <threads> [-o <output>] [-q <quiet>]

    • -p <precision> Indicates the number of members for the calculation.
    • -t <threads> Indicates the number of threads to use for the calculation.
    • -o <output> Indicates where the calculation will be output.
    • -q <quiet> Run program in "quiet" mode