{"id":23219272,"url":"https://github.com/programerr01/pi","last_synced_at":"2025-10-04T21:33:22.350Z","repository":{"id":168001202,"uuid":"249448842","full_name":"programerr01/PI","owner":"programerr01","description":"calculating the value of pi","archived":false,"fork":false,"pushed_at":"2020-03-23T15:03:53.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T15:11:28.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/programerr01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T14:10:34.000Z","updated_at":"2020-03-23T15:03:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c92d7a3-c0ab-4646-9421-bae94f141925","html_url":"https://github.com/programerr01/PI","commit_stats":null,"previous_names":["programerr01/pi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/programerr01/PI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programerr01%2FPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programerr01%2FPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programerr01%2FPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programerr01%2FPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programerr01","download_url":"https://codeload.github.com/programerr01/PI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programerr01%2FPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278379384,"owners_count":25977214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T21:31:05.925Z","updated_at":"2025-10-04T21:33:22.334Z","avatar_url":"https://github.com/programerr01.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PI\ncalculating the value of pi\n# Background \npi is the ratio of perimeter of the circle to the diameter\n\n# Basic technique used\nlet a square whose side is 2r where r is 1\nlet a circle inside the square whose radius is r\nthe area of square is a^2 so a =2r\nthe area of circle is pi*r^2\nso the ratio of area of circle divided by the area of square\n                = pi*r^2 / 4r^2\n               so the ratio is pi/4\n               \nsimilarly if we take the random point in the whole plane the \nprobability that the point will land inside the circle is \n                    = points land in circle / total number of points thrown\n     \nthis ratio should also equal to the ratio of area\n               pi/4 = total number in circle / total number of points\n               pi = 4 * total number in circle / total number of points\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramerr01%2Fpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramerr01%2Fpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramerr01%2Fpi/lists"}