// PI DAY CALCULATOR 2023 // Happy Pi Day everyone! This year's calculator showcases the Bailey–Borwein–Plouffe formula (BBP formula) for computing pi. Drag the slider to see the formula in action! == What is Pi? == Pi (Greek letter "π") is a mathematical constant that plays an important role in the field of mathematics. It represents the ratio of a circle's circumference to its diameter and is used in many aspects such as physics, architecture, space travel, medical procedures, and music, just to name a few! == What is Pi Day?== Pi Day is the celebration of the mathematical constant π on March 14th (3/14) of every year. Usually people celebrate by eating pi foods, memorizing the digits of pi, and sharing jokes. == About this year's showcase == The BBP digit extraction formula was first discovered in 1995 and is one of the most efficient formulas to date, only being surpassed by the more complicated Bellard's formula this century. It uses a summation of terms to calculate pi unlike other methods which use infinite series or iteration. Formula: Σ k = 0 to ∞: (1/16^k) x (4/(8k+1) - 2/(8k+4) - 1/(8k+5) - 1/(8k+6) Also can be read as: "For every k = 0 to infinity, calculate the expression (1/16^k) x ... and add up the terms to find pi" Note that it's impossible to calculate the summation of terms to infinity (because you would never stop!), so the upper bound variable in this project controls the limit. Learn more at https://en.wikipedia.org/wiki/Bailey-Borwein-Plouffe_formula == Why do I love pi? == Honestly, I don't know, lol. Although I don't like mathematics very much, I love celebrating Pi Day. Ever since I memorized the first 50 digits of pi in my childhood, I have been involved in pi day every year. Now I know over 150 digits by heart! Due to work, this will unfortunately be my last Pi Day project. Enjoy this one, and I wish everyone the best! Last year's Pi Day project: https://scratch.mit.edu/projects/658920322/ This year's official Pi Day featured studio: https://scratch.mit.edu/studios/33019291/ With all that said, have a well-rounded rest of your day!