Рет қаралды 46,413
🥧 Happy Pi Day 2021! This year I estimate the digits of π with random numbers and the probability of two integers being co-prime. thecodingtrain.com/challenges...
🎥 Matt Parker's Generating π from 1,000 random numbers: • Generating π from 1,00...
🎶 Pi Day song by Will from America: willfromamerica.com
🎨 Character design and animations by Jason Heglund jasonheglund.com/
🎬 Editing by Mathieu Blanchette
p5.js Web Editor Sketches:
🕹️ Estimating π from Random Numbers: editor.p5js.org/codingtrain/s...
🕹️ Estimating π from Digits of π: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #160:...
🎥 All videos: • Coding Challenges
Links discussed in this video:
🔗 Probability of Two Integers Being Coprime: www.cut-the-knot.org/m/Probab...
🔗 Euclidean Algorithm: en.wikipedia.org/wiki/Euclide...
🔗 A Million Random Digits with 100,000 Normal Deviates: www.rand.org/pubs/monograph_r...
🔗 Quantum random numbers: qrng.anu.edu.au/
Other videos mentioned in this video:
Timestamps:
0:00 Happy Pi Day!
1:26 Explain! What does co-prime mean?
4:21 Explain! Euclid's Algorithm
8:40 Example! Finding the greatest common divisor.
9:55 Code! gcd() function with Euclid's Algorithm.
12:23 Code! Let's load the random digits.
14:39 Code! Let's use draw() for our loop.
16:13 Code! Co-prime or Co-factor?
17:44 Explain! How we are going to estimate π.
18:50 Code! Estimating π.
21:59 Code! Trying with digits of π.
22:54 Ideas! Thanks for watching!
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/Guides/com...
🚩 Suggest Topics: github.com/CodingTrain/Rainbo...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzbin.infojoin
🛒 Store: standard.tv/codingtrain
📚 Books: www.amazon.com/shop/thecoding...
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
🎶Pi Day song by / willfromamerica
🎶Music by Epidemic Sound: epidemicsound.com/creator
#PiDay #PiDay2021