{"id":18143289,"url":"https://github.com/kawacoder/pi-calculator-java","last_synced_at":"2025-04-06T19:28:50.612Z","repository":{"id":123440647,"uuid":"331349711","full_name":"KawaCoder/Pi-calculator-java","owner":"KawaCoder","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-24T14:05:07.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T01:36:31.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/KawaCoder.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}},"created_at":"2021-01-20T15:32:47.000Z","updated_at":"2021-01-24T14:05:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd1ddf33-83e8-4cd9-9834-a1c96f77f72b","html_url":"https://github.com/KawaCoder/Pi-calculator-java","commit_stats":null,"previous_names":["kawacoder/pi-calculator-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KawaCoder%2FPi-calculator-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KawaCoder%2FPi-calculator-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KawaCoder%2FPi-calculator-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KawaCoder%2FPi-calculator-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KawaCoder","download_url":"https://codeload.github.com/KawaCoder/Pi-calculator-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247538296,"owners_count":20955094,"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":[],"created_at":"2024-11-01T19:06:48.446Z","updated_at":"2025-04-06T19:28:50.587Z","avatar_url":"https://github.com/KawaCoder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pi-calculator-java\nPi calculator is a simple program which compute pi with infinite calcul serie.\n\n## How it works?\nPi calculator is using three different methods: the Gregory-Leibniz series, the Nilakantha series, and the Gauss algorythm.\n\n### The Gregory-Leibniz series\nIt uses this propriety of pi: π = (4/1) - (4/3) + (4/5) - (4/7) + (4/9) - (4/11) + (4/13) - (4/15) ...\n\u003cbr/\u003e[Click here for more about the Gregory-Leibniz series method (wikipedia)](https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80)\n\n### The Nilakantha series\nThis method is doing this infinite sequence: π = 3 + (4/2x3x4) - (4/4x5x6) + (4/6x7x8) ... \n\u003cbr/\u003e[Click here for more about the Nilakantha series](https://www.researchgate.net/publication/283579663_Nilakantha's_accelerated_series_for_pi)\n\n### The Gauss algorythm\nThis algorythm, originally written in c, computes an aproximation of pi very quickly! So, i adapted it in java.\n\u003cbr/\u003e[Click here for more details about the Gauss algorythm](https://cage.ugent.be/~hvernaev/Gauss-L.html)\n\n#### Disclaimer\nDon't use this program to get the pi value! it will only gives you aproximations of pi! Of course, these methods can calculate a huge number of decimals, but \ni adapted it to be simply and fast. This little program is written to show the differences about the differents methods, like the precision and speed.\nIf you want, you can use it for your studies, at your own risk ;)\n\n#### Other information\nYou can also modify this code as you want, just tag my pseudo on it! That's all! Thanks! ;)\n\u003cbr/\u003eIf you think that this code can be upgraded, so the commit requests are opened!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawacoder%2Fpi-calculator-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkawacoder%2Fpi-calculator-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawacoder%2Fpi-calculator-java/lists"}