Talk:Computing π

From Wikipedia, the free encyclopedia

WikiProject Mathematics
This article is within the scope of WikiProject Mathematics, which collaborates on articles related to mathematics.
Mathematics rating: Start Class Mid Priority  Field: Basics

Contents

[edit] Projects

What Projects need to be researched besides Pi Hex and Background Pi? And does anyone know where good information about Pi Hex still exists since there website seems to have disappeared?

[edit] Citations?

I removed the citations-needed template, since I can't find anything obvious that looks like it needs a citation. Lunkwill 23:33, 18 January 2007 (UTC)

Just thought it might be a good idea to have some referances to sources that are respected as being fact. Deathbob 18:39, 19 January 2007 (UTC)

[edit] Error

http://upload.wikimedia.org/math/3/a/8/3a87d816e9c1cfa57c6c4bf688a17f06.png Does not evaluate to pi. ~~ —The preceding unsigned comment was added by 71.111.49.18 (talk) 05:06, 21 February 2007 (UTC).

I just checked with Mathematica 5.2 and it sais it's pi. Could you explain your reasoning? Deathbob 17:06, 24 February 2007 (UTC)

[edit] π

The following equation is TRUE!

 \pi = (\frac{ 2 (2\pi + 3) + 4}{2} -5)(\frac{1}{2\pi}) (\frac{\pi^n}{\pi^{n-1}})\,\!
It is, Briguychau. But that's just a complicated, unuseful way of expressing π. Why would you want to do that and why put it into an encyclopedia? You realize that (\frac{1}{2\pi}) (\frac{\pi^n}{\pi^{n-1}}) = \frac{1}{2}, don't you? Ocolon 12:28, 1 March 2007 (UTC)
I just put this equation here to make people calculate it to the result  \pi = \pi\,\!. Briguychau 2:39, 2 March 2007 (UTC)

[edit] Continued fractions

I modified the second continued fraction from one for 4/π to one for π itself. Since the orignal article has been re-edited, I'll restate these continued fractions here.

\pi = 3 + \frac{1^2}{6+} \frac{3^2}{6+} \frac{5^2}{6+} \frac{7^2}{6+} \frac{9^2}{6+} \frac{11^2}{6+} ... = 3 - \sum_{n=1}^\infty \frac{(-1)^n}{n (n+1)(2n+1)} = 3 + \frac{1}{6} - \frac{1}{30} + \frac{1}{84} - \frac{1}{180} + \frac{1}{330} - \frac{1}{546} ...

Its convergence slows rapidly as additional terms are computed. Not so the second. It is more difficult to compute:

\pi = \frac{4}{1+} \frac{1^2}{3+} \frac{2^2}{5+} \frac{3^2}{7+} \frac{4^2}{9+}  \frac{5^2}{11+} \frac{6^2}{13+} \frac{7^2}{15+} \frac{8^2}{17+} \frac{9^2}{19+} \frac{10^2}{21+} ... 
= 4 - \frac{2}{2} + \frac{2^2}{3x2x4} - \frac{2^3}{4x4x17} + \frac{2^4}{5x17x37}

 - \frac{2^5}{6x37x164} + \frac{2^6}{7x164x368} - \frac{2^7}{8x368x1667} + \frac{2^8}{9x1667x3803} - \frac{2^9}{10x3803x17452} + \frac{2x2^9}{11x17452x40232} - ...

Its convergence, however, is remarkably stable. For example, dividing the seventh term by the eighth yields -1667/287 = -5.80836.... The quotients appear to converge toward -(3+2\sqrt{2}) or -5.82842...; however, I shall need to do compute additional terms to determine whether this is indeed the case. So far I know that the quotients stabilize at about -5.82... by the 12th term. Since log10(5.82) is about 0.765, this continued fraction adds better than 3/4 of a decimal digit of precision per term (more precisely, 13 digits per 17 terms).

Glenn L 07:16, 15 July 2007 (UTC)

[edit] Large section removal

I removed a large section that appears to be a copy/paste from somewhere, but that is almost useless and very confusing because it misses de formulae. Still it had some information that looks interesting at first glance, so I leave the edit diff here so that it may be used later. - Nabla 18:56, 19 June 2007 (UTC)

[edit] Pi as the limit of a trigonometric expression

Hi there,
(forgive me if the english is not so clear)
one day I came up with a method of calculating the surface of a circle or any perfect polygon. I don't have background in mathematics so I am sure this method was thought of before and is probably taught in schools as well. (if there is an error in this method tell me)

I wanted to add it to the article, because I think it is easier to understand:
we calculate the surface based on the radius and the number of polygon sides
so Pi is not absolute but a function of number_of_sides.
in perfect polygons all the angles are the same.
let's start by thinking of a simple square
in the square, we draw a straight line to the center of the side. it will be 90degrees.
we'll call this the radius. we draw another line to the corner.
then we calculate the surface by using triangles.
(radius*half_of_side_length)/2 .. but we need the other half as well. so *2. meaning, one side is radius*half_of_side_length.
the whole surface is radius*half_of_side_length*number_of_sides.
good. now, we realize that the longer the radius becomes in such perfect polygons, the longer the side length will become.
so side length is a function of radius.
in the small triangle, we see that tan(angle)=radius/half_side_length
half_side_length=radius/tan(angle)
.. good.
now about the angles.
there is a way to calculate the sum of angles in polygons.
it's 180*(n-2) (triangle is 180, square is 360 ..etc.)
since it is a perfect polygon, the line to the corner we use in the little triangle "splits" the angle to two exact angles.
Surface was radius*half_of_side_length*number_of_sides
and half_side_length=radius/tan(angle)
Surface=radius*number_of_sides*radius/tan(angle)
angle is a function of number of sides, meaning: half_of(180*(n-2)/n)
S=(r*n*r)/tan(180*(n-2)/2n) = r^2*(n/tan(90-180/n))
we've reached the end.
if we say S=pi*r^2
let's check pi as n/tan(90-180/n)
pi(4)=4/tan(90-180/4)=4/tan(45)=4/1=4  ;; pi(4)=4
pi(100)=100/tan(90-180/100)=100/tan(88.2)=3.142626604.. ;; pi(100)=3.142626604
pi(1000000000)=3.14159265358979... which is closer to the perfect pi.
a circle has infinite sides, so pi of infinite is the pi that is normally talked about.
again, I'd like to say that I don't have background in math so if there's something obvious that doesn't work forgive me. I just thought of archimedes a little time ago, and how he liked triangles so much, and then I understood how to calculate this with triangles.
I liked that I understood it myself, and was happy to find it
since I understood it easily, I think the readers can also follow, especially with images and basic equations.

Thanks, kobi.
k_lurie@gbrener.org.il

Thanks for your effort. Unfortunately there are two separate reasons why your method is not appropriate for the article.
First, since you developed the formula yourself, it counts as "original research" by Wikipedia's rules. This is not allowed in a Wikipedia article; we report on new discoveries when they have been published in a respectable non-Wikipedia medium such as a scientific journal or a widely-used textbook. You may read more details about this at Wikipedia:No original research.
Second, your method is not a practical way to compute pi, because it requires that you alreay have a way to compute tangents when the angle is given in degrees. I assume you used a calculator to get the above numbers. What the calculator does when you ask for trigonometric functions in degrees is first to convert your argument to radians, and then compute the tangent of the radian value. The conversion from detrees to radians is by multiplying by π/180, and your method will not yield a pi that is better than the approximation that the calculator uses for the radian conversion. In other words, your method only allows calculation of pi if you already know it.
By the way, you're not the first to propose formulas of this kind; here is a discussion of an earlier, similar proposal. –Henning Makholm 17:16, 3 July 2007 (UTC)
ah ok, I understand now. I thought there must be something obvious that I missed. :)
so if I understand you correctly, for this method to work, we'd need to compute the radius and side ratio without using the angles in the triangle.
and so (according to your explanation) the current method is actually
pi=n/radtan((pi/2)-(pi/n))
if I had no mistake..
anyway, thank you for the clarification.
(I still think it may be easier to understand for those who read and want to understand what pi means, and its connection to a circle - not the formula, just the drawing and conception)