{"id":20324379,"url":"https://github.com/oniani/chudnovsky","last_synced_at":"2026-02-25T17:35:27.336Z","repository":{"id":112155286,"uuid":"303028072","full_name":"oniani/chudnovsky","owner":"oniani","description":"The Chudnovsky algorithm for calculating the digits of Pi","archived":false,"fork":false,"pushed_at":"2024-11-15T04:41:07.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T15:47:09.096Z","etag":null,"topics":["chudnovsky-algorithm","pi","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oniani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-11T02:35:46.000Z","updated_at":"2024-11-15T04:41:10.000Z","dependencies_parsed_at":"2023-08-01T08:45:58.779Z","dependency_job_id":null,"html_url":"https://github.com/oniani/chudnovsky","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oniani/chudnovsky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Fchudnovsky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Fchudnovsky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Fchudnovsky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Fchudnovsky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oniani","download_url":"https://codeload.github.com/oniani/chudnovsky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Fchudnovsky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29832966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:17:09.781Z","status":"ssl_error","status_checked_at":"2026-02-25T17:16:50.421Z","response_time":61,"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":["chudnovsky-algorithm","pi","rust"],"created_at":"2024-11-14T19:33:47.346Z","updated_at":"2026-02-25T17:35:27.317Z","avatar_url":"https://github.com/oniani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chudnovsky\n\nThe Chudnovsky algorithm for calculating the digits of Pi.\n\n_Fun fact: it generated over 3 million digits in a little over 7 minutes on a\nregular, not very powerful machine._\n\n## Dependencies\n\n- [rug](https://docs.rs/rug/1.11.0/rug/index.html)\n\n## Run\n\n```sh\ncargo build --release\n./target/release/chudnovsky 150 100\n```\n\nThe output should look like this:\n\n```\nApproximation: 3.1415926535897932384626433832795028841971693980\nPrecision:     150\nIterations:    100\n```\n\nThe number of iterations and the precision can both be modified via providing\ndifferent arguments to the binary. The first and second arguments being the\nprecision and the number of iterations respectively.\n\nOne could also directly change `PRECISION` and `ITERATIONS` constants in\n`src/main.rs`.\n\nThe bigger both variables, the more digits will be generated.\n\n## Tests\n\n```\ncargo test --release\n```\n\n## References\n\n- [rug](https://docs.rs/rug/1.11.0/rug/index.html)\n- [Chudnovsky algorithm](https://en.wikipedia.org/wiki/Chudnovsky_algorithm)\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foniani%2Fchudnovsky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foniani%2Fchudnovsky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foniani%2Fchudnovsky/lists"}