In Programming Challenge today we show you how to Estimate numbers π from random numbers using Euclidean algorithm
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!
Subscribe: https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
#js #javascript