{"id":19033424,"url":"https://github.com/carltonmpofu/estimating-pi-csharp","last_synced_at":"2026-01-21T06:21:55.045Z","repository":{"id":170776325,"uuid":"411675694","full_name":"CarltonMpofu/estimating-pi-csharp","owner":"CarltonMpofu","description":"Estimating Pi using Monte Carlo Simulation in C#","archived":false,"fork":false,"pushed_at":"2024-10-08T21:11:43.000Z","size":642,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T04:41:28.157Z","etag":null,"topics":["csharp"],"latest_commit_sha":null,"homepage":"","language":"C#","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/CarltonMpofu.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":"2021-09-29T13:00:32.000Z","updated_at":"2023-08-14T11:31:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd7371f4-42f3-42ef-80dd-9b3129224d09","html_url":"https://github.com/CarltonMpofu/estimating-pi-csharp","commit_stats":null,"previous_names":["carltonmpofu/estimating-pi-csharp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarltonMpofu%2Festimating-pi-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarltonMpofu%2Festimating-pi-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarltonMpofu%2Festimating-pi-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarltonMpofu%2Festimating-pi-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarltonMpofu","download_url":"https://codeload.github.com/CarltonMpofu/estimating-pi-csharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248722237,"owners_count":21151219,"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","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":["csharp"],"created_at":"2024-11-08T21:39:19.733Z","updated_at":"2026-01-21T06:21:55.013Z","avatar_url":"https://github.com/CarltonMpofu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# estimating-pi-csharp\n\nEstimating Pi using Monte Carlo Simulation.\n\n![](images/formular.png)\n\nAn estimate of pi is obtained by dividing the\nnumber of raindrops that hit the circle and the square\nand multiplying the result by 4.\n\n## Results\nUsing 1000 drops:\n\n![](images/result1.png)\n\nUsing 5 000 drops:\n\n![](images/result2.png)\n\nUsing 10 000 drops:\n\n![](images/result3.png)\n\nUsing 100 000 drops:\n\n![](images/result4.png)\n\nUsing 3 000 000 drops:\n\n![](images/result5.png)\n\nUsing 10 000 000 drops:\n\n![](images/result6.png)\n\n### Notes\nThe program starts to slow down when using raindrops greater than 10000\ndue to the plotting of raindrops on the square. Therefore, I commented out the\nplotting feature and only focused on getting the results for raindrop\nvalues greater than 10000.\n\nI will look for ways to optimize the program in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarltonmpofu%2Festimating-pi-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarltonmpofu%2Festimating-pi-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarltonmpofu%2Festimating-pi-csharp/lists"}