Calculating Pi in python!

Published: 23 June 2022
on channel: Starting From Scratch
1,103
like

In this video, we calculate pi in python using a formula! It allows us to calculate pi to as many decimal places as we want.

TIMESTAMPS⏰
0:00 Demonstration
0:21 Importing libraries
0:25 Coding arccot function
0:41 We are using integers to calculate pi!
1:23 Initializing values
1:37 Formula used to calculated arccotangents
2:13 Initializing values (continued)
2:53 Calculating the arccotangent!
5:08 Inputting number of digits
6:26 Setting the big number
6:45 Running the function to calculate pi!
8:12 Oops! I put one less zero!
8:18 Printing the result


On this page of the site you can watch the video online Calculating Pi in python! with a duration of hours minute second in good quality, which was uploaded by the user Starting From Scratch 23 June 2022, share the link with friends and acquaintances, this video has already been watched 1,103 times on youtube and it was liked by like viewers. Enjoy your viewing!