Wikipedia:Reference desk/Archives/Mathematics/2018 December 30
Appearance
Mathematics desk | ||
---|---|---|
< December 29 | << Nov | December | Jan >> | Current desk > |
Welcome to the Wikipedia Mathematics Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
December 30
[edit]Iterative algorithm question
[edit]I worked out a simple iterative algorithm with which to compute .
I won't detail the working, but it involves the cosine rule, the half-angle formula, and perimeters of polygons. A working starting point is as follows.
There are other starting points from which this works also.
My question: is it possible to write this method in the form ?--Leon (talk) 13:07, 30 December 2018 (UTC)
- @Star trooper man: I'm not sure, but it's certainly possible to write it in the form of , as
- ∰Bellezzasolo✡ Discuss 14:18, 30 December 2018 (UTC)
- In general you can't have a simple iteration zn+1 = f(zn) converge to π in a useful way. Presumably f would be an algebraic function involving no transendental constants. Then π = f(π) implies π is algrabraic which is false. As an aside, I'm pretty sure this method is an application of
- with x = π/6. So it's very similar to Viète's formula which is basically the same with x = π/2. --RDBury (talk) 15:12, 30 December 2018 (UTC)
- In general you can't have a simple iteration zn+1 = f(zn) converge to π in a useful way. Presumably f would be an algebraic function involving no transendental constants. Then π = f(π) implies π is algrabraic which is false. As an aside, I'm pretty sure this method is an application of
In the response to your aside, what I did was as follows.
- Consider a circle of diameter 1.
- Use the cosine rule to compute the length of the sides of a regular polygon (I opted to start with a hexagon) such that its vertices lie on the circle. The hexagon is composed of six triangles, and the angle of each triangle opposite the outward side (one actually part of the hexagon's perimeter) is . is , a nice rational number.
- Each iteration of works out the side length as the number of polygon sides doubles, applying the half-angle formula for cosine. Each iteration of simply accounts for the fact that the number of sides has doubled. As the number of sides of the polygon increases, it better approximates a circle.
For the record, this is not intended to be a serious method for computing , but simply a pedagogic exercise.
Thanks for your help. Is there an easy way to turn my method into a series?--Leon (talk) 21:41, 30 December 2018 (UTC)
- Maybe I'm not understanding the question, but isn't simply ? Then just plug that into . Bubba73 You talkin' to me? 23:16, 30 December 2018 (UTC)
- That's a sequence, not a series.--Leon (talk) 09:31, 31 December 2018 (UTC)
- Actually this method was a serious method for computing π hundreds of years ago, which is what I was trying to get at above. This video [1] uses pretty much the same method (called Archimedes' method in the video) to evaluate π in a spreadsheet, the main difference is that he uses the Pythagorean theorem to get the sides of the polygon instead of half angle formulas. The problem with π is that everything that wasn't already discovered by Ramanujan's time was discovered by Ramanujan. (Ok, not everything, but hopefully you get my point.) Any sequence {an} can be turned into a series via a1 + (a2-a1) + (a3-a2) + ... . The question is whether the series form is any simpler than the original form; in this case there are some simplifications possible, but the result will still involve square roots and won't be an improvement. --RDBury (talk) 23:12, 31 December 2018 (UTC)