Compute ๐ to a ludicrously high precision!
.NET 9.0 + Avalonia UI. Developed with JetBrains Rider IDE.
Uses the ExtendedNumerics BigDecimal class.
Uses these algorithms to calculate ๐:
- Andrew Jennings' Javascript code
- Cygnus Software's technique
- The Plouffe / Bellard algorithm
Go to the "Pi Calculator\Pi Calculator\deploy" folder. Run "deploy-all-framework-dependent.ps1" or "deploy-all-self-contained.ps1".
The framework dependent build scripts will create relatively small executables, which will require that .NET 9 has already been installed.
The self-contained scripts will create relatively large executables which will not require a previous .NET 9 installation.
Pi Calculator was developed in the C# programming language, using Avalonia
, which allows developers
to create .NET UI apps for Windows, Linux, and OSX.
The app was developed with the JetBrains Rider
IDE.
After building the app, use the scripts in the "deploy" folder to generate the executable and dependencies.
https://math.tools/numbers/pi/1000000
This program uses a single CPU core.
It calculated 1,000,000 digits in ~20 minutes on an AMD Ryzen 7 PRO 7840U with 64 GB RAM.
The Plouffe / Bellard code could be easily parallelized, but since the Andrew Jennings code is so much faster, there's really no point.