Coding Challenge 161: Estimating π from Random Numbers with Euclid's Algorithm
🥧 Happy Pi Day 2021! This year I estimate the digits of π with random numbers and the probability of two integers being co-prime. https://thecodingtrain.com/challenges/161-estimating-pi-from-random-numbers
🎥 Matt Parker's Generating π from 1,000 random numbers: https://youtu.be/RZBhSi_PwHU
🎶 Pi Day song by Will from America: willfromamerica.com
🎨 Character design and animations by Jason Heglund https://jasonheglund.com/
🎬 Editing by Mathieu Blanchette
p5.js Web Editor Sketches:
🕹️ Estimating π from Random Numbers: https://editor.p5js.org/codingtrain/sketches/FiOG6uajS
🕹️ Estimating π from Digits of π: https://editor.p5js.org/codingtrain/sketches/x0eikODKm
🎥 Previous video: https://youtu.be/Rr-5HiXquhw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
Links discussed in this video:
🔗 Probability of Two Integers Being Coprime: https://www.cut-the-knot.org/m/Probability/TwoCoprime.shtml
🔗 Euclidean Algorithm: https://en.wikipedia.org/wiki/Euclidean_algorithm
🔗 A Million Random Digits with 100,000 Normal Deviates: https://www.rand.org/pubs/monograph_reports/MR1418.html
🔗 Quantum random numbers: https://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: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html
🚩 Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
📚 Books: https://www.amazon.com/shop/thecodingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
🎶Pi Day song by https://twitter.com/WillFromAmerica
🎶Music by Epidemic Sound: http://epidemicsound.com/creator
#PiDay #PiDay2021
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Coding Challenge 161: Estimating π from Random Numbers with Euclid's Algorithm», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.