Back to Browse

Calculating pi by counting pixels (area method)

2.4K views
Apr 5, 2023
5:03

In last week's video, I wrote a program to calculate pi by drawing the outline of a circle and estimating the circumference by counting pixels. This is not the right method, and I explained that in the video. I said it was because the outline is "sampling" the circle - but that' not right. I'll refer you to a very well done video from 3 blue 1 brown about why this doesn't work. It's the second of the "false proofs" he demonstrates: https://www.youtube.com/watch?v=VYQVlVoWoPY A better way to calculate pi by counting pixels is with the Area. And that's our updated video for this week. Visit our website https://www.freedos.org/ Join us on Facebook https://www.facebook.com/groups/freedosproject/ Follow us on Mastodon https://fosstodon.org/@freedosproject Consider supporting me on Patreon https://www.patreon.com/freedos And don't forget to Like and Subscribe! Standard comment rules apply.

Download

1 formats

Video Formats

360pmp45.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Calculating pi by counting pixels (area method) | NatokHD