Hypergeometric function – Perimeter of an Ellipse and other applications (wp34s)
|
02-08-2020, 11:17 PM
(This post was last modified: 02-09-2020 01:37 AM by Gerson W. Barbosa.)
Post: #18
|
|||
|
|||
RE: Hypergeometric function – Perimeter of an Ellipse and other applications (wp34s)
Here is an explanation of the (unorthodox) method I've been using to find these approximations. It is based on sheer observation rather than on complicated mathematical analysis. For example, The ratio between four times the equivalent radius and its difference from the arithmetic mean of the semi-axes is about sixteen times the inverse of the square of the h parameter (difference of the semi-axes over their sum) plus 3:
\(\frac{4r}{r-\frac{a+b}{2}}\approx \frac{16}{h^{2}}+3\) By solving it for r we obtain \(r \approx \frac{a+b}{2}\left ( \frac{3h^{2}+16}{16-h^{2}} \right )\) or \(p\approx \pi \left ( a+ b \right )\left ( \frac{3h^{2}+16}{16-h^{2}} \right )\) (1 655 947.321 km) (Numbers attached to a length unity between parentheses here and elsewhere following a formula or program refer to the error obtained when using it to compute the perimeter of the orbit of Halley's comet). That's Selmer's approximation from 1975 (Gauss, Landen, Ramanujan, the Arithmetic-Geometric Mean, Ellipses, π, and the Ladies Diary, page 600). This linked paper contains a derivation of Ramanujan's second approximation (page 602). This can be carried one step further: \(\frac{4r }{r - \frac{a+b}{2}} \approx c - \frac{1}{\frac{c-9}{3}}\) where \(c = \frac{16}{h^{2}}+3\) which leads to \(r \approx \frac{a+b}{2} \left ( \frac{256-48h^{2}-21h^{4}}{256-112h^{2}+3h^{4} } \right )\) or \(p \approx \pi \left ( a+b \right )\left ( \frac{256-48h^{2}-21h^{4}}{256-112h^{2}+3h^{4} } \right )\) (12 315.162 km) That's Jacobsen's and Waadeland's approximation from 1985 (page 601 in the previously linked paper). That can be carried even further: \(\frac{4r }{r - \frac{a+b}{2}} \approx c - \frac{1}{\frac{c-9}{3}-\frac{1}{\frac{9d}{11}}}\) where \(c = \frac{16}{h^{2}}+3\) and \(d = \frac{\left ( \frac{16}{h^{2}}+3 \right )-9}{3 }\) which implies \(r \approx\left ( \frac{a+b}{2} \right )\left ( \frac{4096-2304h^{2}-224h^{4}+93h^{6}}{4096-3328h^{2}+544h^{4}-7h^{6}} \right )\) or \(p \approx \pi \left ( a+b \right )\left ( \frac{4096-2304h^{2}-224h^{4}+93h^{6}}{4096-3328h^{2}+544h^{4}-7h^{6}} \right )\) (477.529 km) ----------------- The next three formulae are not particularly useful, but they might be interesting nonetheless: ----------------- \(p\approx \pi \left ( a+b \right )\left ( 1+\frac{1}{8h^{-2}-\frac{1}{8h^{-2}-\frac{17}{8}}} \right )^{2}\) (23 933.122 km) ----------------- \(p\approx 2\pi \left [ a+b- AGM\left (a-c,b+c \right ) \right ]\) where \(c=\left ( a-b \right )\left ( \frac{h^{2}}{16}+\frac{h^{4}}{256}+\frac{h^{6}}{4096} \right )\) \(h=\frac{a-b}{a+b }\) and \(a\geqslant b\) Code:
(8040.370 km) ----------------- \(p\approx 2\pi\left ( \frac{\frac{\left ( a-b \right )^{2}}{4h\cdot AGM\left ( a,b \right )}}{1+\frac{h^{4}}{8-4h^{2}-\frac{25h^{4}}{16}-\frac{h^{6}}{\frac{32}{9}-\frac{9h^{2}}{4}}}} \right )\) (4754.164 km) ----------------- It appears the best option in terms of size, speed and accuracy is the AGM method presented by Albert Chan associated with Ramanujan's second approximation, which requires no more than 35 steps on the wp34s: Code:
(10.132 cm) Edited to fix a hyperlink |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)