In this coding challenge, I use the Leibniz formula (aka infinite series) to approximate the digits of Pi and graph the convergence. Code: [ Ссылка ]
🕹️ p5.js Web Editor Sketch: [ Ссылка ]
🎥 Previous video: [ Ссылка ]
🎥 Next video: [ Ссылка ]
🎥 All videos: [ Ссылка ]
References:
📓 Leibniz formula for Pi: [ Ссылка ]
Videos:
📽️ Pi and the Mandelbrot Set: [ Ссылка ]
🔴 Coding Train Live 172: [ Ссылка ]
Related Coding Challenges:
🚂 #21 Mandelbrot Set with p5.js: [ Ссылка ]
🚂 #156 Peeking Inside Pi: [ Ссылка ]
🚂 #161 Estimating π from Random Numbers with Euclid's Algorithm: [ Ссылка ]
🚂 #169 Pi in the Sky Game: [ Ссылка ]
Timestamps:
0:00 Introduction
1:22 The Leibniz method for approximating pi!
1:57 Let's start coding!
4:59 Visualizing the convergence
8:45 Drawing a line where pi originally exists
9:43 Debugging!
10:49 Refactoring the code a bit
11:43 Try other series!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: [ Ссылка ]
👾 Share Your Creation! [ Ссылка ]
🚩 Suggest Topics: [ Ссылка ]
💡 GitHub: [ Ссылка ]
💬 Discord: [ Ссылка ]
💖 Membership: [ Ссылка ]
🛒 Store: [ Ссылка ]
🖋️ Twitter: [ Ссылка ]
📸 Instagram: [ Ссылка ]
🎥 Coding Challenges: [ Ссылка ]
🎥 Intro to Programming: [ Ссылка ]
🔗 p5.js: [ Ссылка ]
🔗 p5.js Web Editor: [ Ссылка ]
🔗 Processing: [ Ссылка ]
📄 Code of Conduct: [ Ссылка ]
This description was auto-generated. If you see a problem, please open an issue: [ Ссылка ]
#leibnizformula #piapproximation #p5js #javascript
Ещё видео!