{"id":23630769,"url":"https://github.com/simonnyvall/finding-pi","last_synced_at":"2026-05-05T19:31:24.913Z","repository":{"id":158718577,"uuid":"504587862","full_name":"SimonNyvall/Finding-PI","owner":"SimonNyvall","description":"Approximating pi with phisics","archived":false,"fork":false,"pushed_at":"2022-08-06T18:59:17.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T21:02:50.013Z","etag":null,"topics":["c","cpp","math","pi"],"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/SimonNyvall.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,"zenodo":null}},"created_at":"2022-06-17T15:37:42.000Z","updated_at":"2022-08-06T19:02:11.000Z","dependencies_parsed_at":"2023-06-04T17:30:36.539Z","dependency_job_id":null,"html_url":"https://github.com/SimonNyvall/Finding-PI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SimonNyvall/Finding-PI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonNyvall%2FFinding-PI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonNyvall%2FFinding-PI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonNyvall%2FFinding-PI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonNyvall%2FFinding-PI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimonNyvall","download_url":"https://codeload.github.com/SimonNyvall/Finding-PI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonNyvall%2FFinding-PI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","cpp","math","pi"],"created_at":"2024-12-28T02:46:52.554Z","updated_at":"2026-05-05T19:31:24.908Z","avatar_url":"https://github.com/SimonNyvall.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Finding PI\n\nA code inspired by a YouTube video\nhttps://www.youtube.com/watch?v=5cNnf_7e92Q\u0026t=392s\n\n## How the algorithm finds pi\nImagine you have a circle inside of a square, where the circle diameter is the same length as the square. Then random points start to be plotting all around the square. When you map the amount of dots that has learnt inside the circle and divide it the total amount, you will get an approximation of pi.\n```\n4 * [DOTS IN CIRCLE] / [DOTS IN SQUARE] = [PI]\n```\n![Pi_30K](https://user-images.githubusercontent.com/50596493/183262594-b2d4615c-7607-4ae2-b7c8-9a1e4b41b201.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonnyvall%2Ffinding-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonnyvall%2Ffinding-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonnyvall%2Ffinding-pi/lists"}