GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Tincre/pi: Using the Gauss-Legendre Algorithm to calculate Pi

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
README.md
README.md
 
 
dev-requirements.txt
dev-requirements.txt
 
 
lock-dependencies.sh
lock-dependencies.sh
 
 
pi.py
pi.py
 
 
requirements.txt
requirements.txt
 
 
test_pi.py
test_pi.py
 
 

Repository files navigation

pi

Using the Gauss-Legendre Algorithm to calculate Pi.

Usage

 Usage: pi.py [OPTIONS] COMMAND [ARGS]...

╭─ Options ─────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.           │
│ --show-completion             Show completion for the current shell, to copy it   │
│                               or customize the installation.                      │
│ --help                        Show this message and exit.                         │
╰───────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────╮
│ calculate-pi                 Returns the correct value of Pi up to the given      │
│                              digits.                                              │
│ calculate-pi-gauss-legendre  This implements the Gauss-Legendre algorithm to      │
│                              calculate the value of Pi. Because it is memory      │
│                              intensive, practitioners typically do not implement  │
│                              this algorithm for actually calculating Pi.          │
│ truncate-decimal             Truncates a Decimal value to a specified number of   │
│                              decimal places.                                      │
╰───────────────────────────────────────────────────────────────────────────────────╯

To calcualte Pi to 39 digits:

python pi.py calculate-pi 39

Happy Pi Day 2024

tincre.com made this to represent Pi day 2024 (March 14th, 2024). This library is entirely inconsequential but we're happy to accept contributions.

About

Using the Gauss-Legendre Algorithm to calculate Pi

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.