Quantcast
Viewing all articles
Browse latest Browse all 1264

Python • Pi Day

All,

In celebration of Pi Day, I have released the following program.
https://gitlab.com/JohnMarkMobley/pi.py

The program calculates the value of pi.

I wrote it in Python, and ran it on a Raspberry Pi computer, for Pi Day!

My wife made me pie for Pi Day.

# Occasion....: This is in celebration of Pi Day 2024
# Description.: Use the Pythagorean Theorem to calculate pi.
# Purpose 1...: Calculate the value of pi
# Purpose 2 ..: To give knowledge, understanding, and wisdom.
# Purpose 3 ..: To aid in education.
# Purpose 4 ..: To teach programming.
# License.....: MIT License: https://github.com/aws/mit-0
# Copyright...: Copyright <2024> <John Mark Mobley>
# Environment.: Linux: Raspberry Pi OS
# Linux Shell.: Bourne Again SHell (bash)
# Language....: Python3
# Hardware....: Raspberry Pi 4 Model B with 8 GB of RAM
# Extra Credit: Make the code work on a Linux cluster.
# ............: And read the code for more ideas.

Happy Pi Day!

-John Mark Mobley

Statistics: Posted by John Mark Mobley — Thu Mar 14, 2024 6:52 pm



Viewing all articles
Browse latest Browse all 1264

Trending Articles