ScratchData LogoScratchData
Back to Pixel_Gamer's profile

Calculating Pi From A Circle

PIPixel_Gamer•Created January 14, 2019
Calculating Pi From A Circle
1
1
36 views
View on Scratch

Instructions

Run in turbo mode (shift click green flag)

Description

This project works on the basis that the chance of any point randomly selected from a square of length R containing a circle of length R is Pi/4 This project calculates pi slowly by randomly placing points on the square and checking if the distance from the center is less than R. If it is, we can use the formula (points in circle / points total)*4 to estimate pi.

Project Details

Project ID279413710
CreatedJanuary 14, 2019
Last ModifiedJanuary 15, 2019
SharedJanuary 15, 2019
Visibilityvisible
CommentsAllowed