Talk:Approximations of π
![]() | This article is rated C-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||
|
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 10 sections are present. |
Wallis product?
[edit]Should the Wallis product be mentioned on this page or is it too obscure? It does seem that some books use it at leas as an example; see http://math.stackexchange.com/questions/1097633/how-to-show-frac-pi4-frac2-cdot4-cdot4-cdot6-cdot6-cdot8-dotsm3-cdot — Preceding unsigned comment added by 86.121.137.79 (talk) 15:50, 9 January 2015 (UTC)
- Done. Wqwt (talk) 20:37, 10 January 2024 (UTC)
approximations based on and
[edit]Based on a recent addition, this approximation: is accurate to 8 digits. But I don't think it's worth adding to the article. Dhrm77 (talk) 11:12, 30 May 2023 (UTC)
Babylonian and Egypt Pi?
[edit]"one Old Babylonian mathematical tablet excavated near Susa in 1936 (dated to between the 19th and 17th centuries BCE) gives a better approximation of π as 25⁄8 = 3.125, about 0.528% below the exact value.
At about the same time, the Egyptian Rhind Mathematical Papyrus (dated to the Second Intermediate Period, c. 1600 BCE, although stated to be a copy of an older, Middle Kingdom text) implies an approximation of π as 256⁄81 ≈ 3.16 (accurate to 0.6 percent) by calculating the area of a circle via approximation with the octagon."
The problem is that neither of those cultures had yet a concept of pi as either circumference/diameter or as area/(radius^2).
For the babylonians, they have a tablet that basically says that the circumference of a circle is 25/24 multiplied by the perimeter of the inscribed regular hexagon. So if the circle has diameter=1, the side of the hexagon is 0.5 and the perimeter of the hexagon is 3 so the circumference of the circle would be 25/24*3=25/8=3 1/8. So this is a formula for circumference of a circle, basically 25/8 * diameter, so it is not totally wrong to say 'by implication treats pi as 25/8".
But for Egypt, this is much more of a stretch. They have a formula for the area of a circle which is A=(D-D/9)^2. It is a great formula, but to say "treats pi as 256/81" is really not accurate. While it is true that this formula could be written as A=(2r-2r/9)^2=(16r/9)^2=256/81*r^2 it is not accurate to say that it treated pi as 256/81.
I think it would be better to just say that these cultures had formulas for circumference and area which are equivalent to the formulas C=(25/8)D and A=(256/81)r^2 so it is like they had values for pi, but it wasn't like they were using the formulas C=pi*D and A=pi*r^2 and they were trying to use the best approximation of pi they could think of.
Might there be a simple way to edit this so that it is more accurate and does not claim that these cultures were aware there there was this constant pi, but not to make it too complicated to explain? Nymathteacher (talk) 20:59, 22 August 2023 (UTC)
Borwein's approximation
[edit]Ramanujan's approximation in his 1914 paper:
is valid when n is odd. For example,
is a simple approximation, but
is complicated. The Borwein's brothers mention the following approximation in their book.
where
is valid when n is even. I added this approximation to the article. Nei.jp (talk) 21:59, 21 October 2023 (UTC)
Miscellaneous approximations
[edit]This section has become a magnet for the insertion of ad hoc approximations of a few decimal places that anyone can dream up. I recommend removing the section altogether per WP:SPAMBAIT.—Anita5192 (talk) 22:14, 21 March 2024 (UTC)
Ferguson calculation
[edit][1] I changed the claimed date of this calculation from 1944 to 1946, to match Chronology of computation of π. The cited Nature note was from 1946 and didn't say what in year the calculation was supposedly done (it just says "recently"). 1944 is hard to believe because it was the height of WW2 and it's implausible that anyone with the necessary skills would be spending their time calculating pi, as well as tying up a scarce desk calculator for however long it was. By 1946 there would have been plenty of people with time on their hands, plus surplus calculators. I have not looked at the Penguin book about curious numbers cited in the Chronology article, but Nature article is online. 2601:644:8501:AAF0:0:0:0:2EE5 (talk) 10:32, 21 May 2024 (UTC)
Added: from Bryan Hayes' bibliography:[2]
- Ferguson, D. F. 1946. Evaluation of π. Are Shanks' figures correct? The Mathematical Gazette 30(289):89–90.
A fuller account of Ferguson's confrontation with Shanks. Working with a desk calculator, it took him a year to get up to 530 decimal places. "Up to this point, whenever I had disagreed with Shanks' figures (and this has occurred from time to time, owing to copying errors, etc.), I had never had any real difficulty in finding where I had gone wrong. But at this point I not only found my figures differing completely from those of Shanks, but all my efforts to find my mistake failed." He spent another four months checking his work by means of a different series summation before venturing the opinion that Shanks might have erred.
This and a few others from Hayes' list look like better references about the Ferguson calculation. The mathematical Gazette article is at doi:10.2307/3608485 and indicates the calculation really was done in 1944-1945, wow. I'll change my earlier edit in a minute, and expand the article a little bit when I get a chance. I haven't yet looked Hayes' other references.
Ferguson correction
[edit]Regarding the above, here is the contents of Ferguson's note in Nature (Ferguson, D. F. (16 March 1946). "Value of π". Nature. 157 (3985): 342. doi:10.1038/157342c0):
- Value of π
In 1853 there appeared, in a paper by W. Rutherford, the value of the constant π to 530 decimals, calculated by W. Shanks. This was eventually extended by Shanks to 607, and in 1873 to 707 decimals.
For more than seventy years this has been accepted as the value of π, apparently without any doubts having been expressed in print.
Recently I decided to test numerically a series found by a colleague, R. W. Morris, namely
The value so obtained agrees with Shanks's value only to the 527th decimal place; from that last point it seems that Shanks's value is incorrect.
The values from the 521st to 540th decimals are given below:
86021 39501 60924 48077 (Shanks).
86021 39494 63952 24737 (D. F. F.).
It is of interest to note that the discrepancy occurs at about the point to which Shanks's first published value extends, that is, in the 530th decimal.
D. F. Ferguson
Royal Naval College, Eaton, Chester.
2601:644:8501:AAF0:0:0:0:98EB (talk) 18:06, 21 May 2024 (UTC)
Digit extraction methods
[edit]It's quite frustrating that the section titled "digit extraction methods" doesn't actually state a way of extracting a digit of π, in any base. It states that the formula can compute any particular digit of π—returning the hexadecimal value of the digit—without having to compute the intervening digits (digit extraction).
But then, bizarrely, doesn't give a formula for extracting any particular digit of π, instead giving a series sum to return the value of π.
It is tempting to look at the version of the BBP formula given and think that the 16-n factor at the end implies that the rest returns the value of one digit but this is obviously not the case, as the n
factor only appears in denominators and so all the terms in the first part of the sum will become infinitesimally small as n→∞
.
Likewise, Plouffe's formula for digits of π in base 10 is only given as a sum with no obvious way to factor it into individual digits.
Could someone better at this stuff than me please add a formula that actually returns arbitrary digits of π? Or, if this is actually not possible, the article text needs to be updated to say so. GoldenRing (talk) 12:24, 21 August 2024 (UTC)
Saha and Sinha's method
[edit]This YouTube video by Numberphile describes a new (2024) approximation of π discovered serendipitously by string theory physicists Arnab Priya Saha and Aninda Sinha. — Loadmaster (talk) 18:20, 29 November 2024 (UTC)
- We are an encyclopedia, and encyclopedias generally do best to stay away from cutting edge research in the sciences. If a youtube video is the extent of the secondary coverage, then we certainly shouldn't add it. Remsense ‥ 论 04:07, 30 November 2024 (UTC)
Obfuscated C method?
[edit]In the Summing a circle's area section, I wonder if it would be worth including Brian Westley's program from the Fifth International Obfuscated C Code Contest:
#include <stdio.h> #define _ F-->00||-F-OO--; int F=00,OO=00;void F_OO(); int main(){F_OO();printf("%.3f\n",4.*-F/OO/OO);}void F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }
This program determines a value of 3.141 by, literally, computing its own source code's area. (I have modified the code slightly from its original 1988 form, to make it acceptable to a modern C compiler.) —scs (talk) 11:32, 6 May 2025 (UTC)