{"id":278,"date":"2016-07-30T13:01:31","date_gmt":"2016-07-30T13:01:31","guid":{"rendered":"http:\/\/pi2e.ch\/blog\/?p=278"},"modified":"2024-02-17T09:00:54","modified_gmt":"2024-02-17T09:00:54","slug":"the-chudnovsky-formula","status":"publish","type":"post","link":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/","title":{"rendered":"The Chudnovsky Formula"},"content":{"rendered":"<p>The formula used by y-cruncher to compute \u03c0 is called after the Chudnovsky brothers, two mathematicians living in the United States. In 1989 they <a href=\"http:\/\/www.pnas.org\/content\/86\/21\/8178.full.pdf\">published <\/a>the following formula:<\/p>\n<p>$$\\Large\u00a0 \\frac{1}{\\pi} = \\frac{\\sqrt{10005}}{4270934400} \\sum_{k=0}^{\\infty}(-1)^k\\frac{(6k)!}{(k!)^3(3k)!}\\frac{(13591409+545140134k)}{640320^{3k}}$$<\/p>\n<p>Thanks to the denominator of the last term, the sum converges very rapidly. With every term one gets 14 more correct decimal digits of \u03c0! So for our world record computation of\u00a022 459 157 718 361 digits we only need to compute\u00a01 583 677 621 196 terms.<\/p>\n<p>The following python script implements the Chudnovsky formula and prints the deviation from the precise value of \u03c0. As you can see, 7 terms are sufficient to get the first 100 digits of \u03c0.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/replit.com\/@ptr885\/Chudnovsky-Series?embed=true\" width=\"600\" height=\"400\"><\/iframe><\/p>\n<p>Result:<br \/>\n1 terms: Delta = -5.90307941897917e-14<br \/>\n2 terms: Delta = 3.0784780427869695e-28<br \/>\n3 terms: Delta = -1.7205202595330623e-42<br \/>\n4 terms: Delta = 1.0002815712846047e-56<br \/>\n5 terms: Delta = -5.9591518750910765e-71<br \/>\n6 terms: Delta = 3.609068527148001e-85<br \/>\n7 terms: Delta = -9e-100<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"post-excerpt\">The formula used by y-cruncher to compute \u03c0 is called after the Chudnovsky brothers, two mathematicians living in the United&#8230;<\/p>\n","protected":false},"author":1,"featured_media":291,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-math"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Chudnovsky Formula - 22.4 trillion digits of pi<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Chudnovsky Formula - 22.4 trillion digits of pi\" \/>\n<meta property=\"og:description\" content=\"The formula used by y-cruncher to compute \u03c0 is called after the Chudnovsky brothers, two mathematicians living in the United...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/\" \/>\n<meta property=\"og:site_name\" content=\"22.4 trillion digits of pi\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-30T13:01:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-17T09:00:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"646\" \/>\n\t<meta property=\"og:image:height\" content=\"93\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pipi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pipi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/\"},\"author\":{\"name\":\"Pipi\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/#\\\/schema\\\/person\\\/b90b79010da70988fc7dbd995a7db7b3\"},\"headline\":\"The Chudnovsky Formula\",\"datePublished\":\"2016-07-30T13:01:31+00:00\",\"dateModified\":\"2024-02-17T09:00:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/\"},\"wordCount\":140,\"image\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/chudnovsky.jpg\",\"keywords\":[\"Math\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/\",\"url\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/\",\"name\":\"The Chudnovsky Formula - 22.4 trillion digits of pi\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/chudnovsky.jpg\",\"datePublished\":\"2016-07-30T13:01:31+00:00\",\"dateModified\":\"2024-02-17T09:00:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/#\\\/schema\\\/person\\\/b90b79010da70988fc7dbd995a7db7b3\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/chudnovsky.jpg\",\"contentUrl\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/chudnovsky.jpg\",\"width\":646,\"height\":93},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/2016\\\/07\\\/30\\\/the-chudnovsky-formula\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Chudnovsky Formula\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/\",\"name\":\"22.4 trillion digits of pi\",\"description\":\"world record computation of pi\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pi2e.ch\\\/blog\\\/#\\\/schema\\\/person\\\/b90b79010da70988fc7dbd995a7db7b3\",\"name\":\"Pipi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g\",\"caption\":\"Pipi\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Chudnovsky Formula - 22.4 trillion digits of pi","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/","og_locale":"en_US","og_type":"article","og_title":"The Chudnovsky Formula - 22.4 trillion digits of pi","og_description":"The formula used by y-cruncher to compute \u03c0 is called after the Chudnovsky brothers, two mathematicians living in the United...","og_url":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/","og_site_name":"22.4 trillion digits of pi","article_published_time":"2016-07-30T13:01:31+00:00","article_modified_time":"2024-02-17T09:00:54+00:00","og_image":[{"width":646,"height":93,"url":"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg","type":"image\/jpeg"}],"author":"Pipi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pipi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#article","isPartOf":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/"},"author":{"name":"Pipi","@id":"https:\/\/pi2e.ch\/blog\/#\/schema\/person\/b90b79010da70988fc7dbd995a7db7b3"},"headline":"The Chudnovsky Formula","datePublished":"2016-07-30T13:01:31+00:00","dateModified":"2024-02-17T09:00:54+00:00","mainEntityOfPage":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/"},"wordCount":140,"image":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#primaryimage"},"thumbnailUrl":"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg","keywords":["Math"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/","url":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/","name":"The Chudnovsky Formula - 22.4 trillion digits of pi","isPartOf":{"@id":"https:\/\/pi2e.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#primaryimage"},"image":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#primaryimage"},"thumbnailUrl":"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg","datePublished":"2016-07-30T13:01:31+00:00","dateModified":"2024-02-17T09:00:54+00:00","author":{"@id":"https:\/\/pi2e.ch\/blog\/#\/schema\/person\/b90b79010da70988fc7dbd995a7db7b3"},"breadcrumb":{"@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#primaryimage","url":"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg","contentUrl":"https:\/\/pi2e.ch\/blog\/wp-content\/uploads\/2016\/07\/chudnovsky.jpg","width":646,"height":93},{"@type":"BreadcrumbList","@id":"https:\/\/pi2e.ch\/blog\/2016\/07\/30\/the-chudnovsky-formula\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pi2e.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"The Chudnovsky Formula"}]},{"@type":"WebSite","@id":"https:\/\/pi2e.ch\/blog\/#website","url":"https:\/\/pi2e.ch\/blog\/","name":"22.4 trillion digits of pi","description":"world record computation of pi","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pi2e.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pi2e.ch\/blog\/#\/schema\/person\/b90b79010da70988fc7dbd995a7db7b3","name":"Pipi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/db2d62661a010348e1ed410cbc3ab0265649cb987f220b0b88fbf9387327af85?s=96&d=mm&r=g","caption":"Pipi"}}]}},"_links":{"self":[{"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":22,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":1848,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions\/1848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/media\/291"}],"wp:attachment":[{"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pi2e.ch\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}