home |
index |
units |
counting |
geometry |
algebra |
trigonometry & functions |
calculus
analysis | sets & logic | number theory | recreational | misc | nomenclature & history | physics |
Final Answers |
Related Links (Outside this Site)Ellipse by Dr. James B. Calvert, University of Denver (Colorado).Circumference of an Ellipse by Robert L. Ward in "MathForum@Drexel". New Approximation for [the] Perimeter of an Ellipse by David W. Cantrell. Two New Approximations, in a Certain Form, for the Perimeter of an Ellipse Modifying Ramanujan's Second Approximation for the Perimeter of an Ellipse Perimeter of an Ellipse by Stanislav Sýkora. |
Circumference of an Ellipse
|
Perimeter of an Ellipse Revisited... |
( ) |
P » p (a+b) |
3072 - 1280 h - 252 h2 + 33 h3 |
3072 - 2048 h + 212 h2 |
The next formula along the same road features a ratio of two cubic polynomials.
It's certainly not an easy-to-remember expression,
but it's much more accurate than any of the above for round ellipses,
as it boasts a relative error of about
( ) |
P » p (a+b) |
135168 - 85760 h - 5568 h2 + 3867 h3 |
135168 - 119552 h + 22208 h2 - 345 h3 |
Such formulas are probably best obtained using a device which is to analytic functions
what truncated continued fractions are to real numbers.
The above ratio is equal to the following expression,
truncated "at order m=6",
where the coefficients to use are:
a0 + | h |
a1 + | h |
a2 + | h |
a3 + | h |
a4 + | h |
a5 + | h |
a6 |
Truncating at m=3 gives Hudson's formula,
while Jacobsen's formula corresponds to m=4.
Truncation at m=2 yields a
( ) |
P » p (a+b) [ 1 + |
4 (a-b) 2 | ] = p (a+b) |
16 + 3 h |
(5a+3b)(3a+5b) | 16 - h |
The proper sequence of coefficients [1, 4, -4, 4/3, -4, 12/11...]
is not too difficult to obtain:
Consider a function f(h) which is to be approximated in this way
[if we only want the above coefficients up to am,
we may replace an analytic function
In general, a relation of the typefn+1(h) = hk / [fn(h)- an ] should be used with whatever value of k leads to a nonzero finite value of an+1 (this usually means k=1). These successive values of k would appear as exponents of h in the final rational expression (in particular, if f is an even function of h, then h2 would normally appear at each stage of the rational approximation). Things may thus be slightly more complicated than with the case discussed here.
In the above, an odd order of truncation (m) gives a rational approximation
where the degree of the numerator is one unit higher than the degree of the denominator.
If we apply the method to 1/f(h) instead
[and take the reciprocal of the result]
we obtain a numerator of lower degree than the denominator.
(At even orders of truncation, the results of the two approaches coincide.)
For this "reciprocal" approach, the sequence of coefficients is:
1,
( ) |
P » p (a+b) |
64 + 16 h |
64 - h2 |
Like most historical approximations to the perimeter of an ellipse, the second formula of Ramanujan reaches its worst relative error for a degenerate ellipse: Its O(h5 ) relative error reaches a maximum of (7p/22-1) for a flat ellipse (h = 1).
Therefore,
the following formula is exact for a flat ellipse while retaining the same leading error
term for a roundish ellipse as Ramanujan's second formula,
provided f is
( ) |
P » p (a+b) [ 1 + 3h / ( 10+Ö | 4-3h | ) + 4 h6 (1/p - 7/22) f ] |
David W. Cantrell has proposed the O(h12 ) correction f = h6 , for a relative error never worse than ±15 ppm. This proposal was spurred by a more complex correction term presented to him by Edgar Erives. The exponent 6 is merely the integer closest to an optimal exponent which is only minutely better.
On 2004-06-06, Ricardo Bartolomeu asked us to evaluate a [very messy] trigonometric approximation of the perimeter of an ellipse, which he had stumbled upon, with apparently good results. Miraculously, Bartolomeu's expression happens to be equivalent to a nice symmetric function of a and b:
P » p (a-b) / arctg [ (a-b) / (a+b) ] = p (a+b) [ 1 + h/3 + O(h2 ) ]
This simple formula is defined by continuity for a = b. It's exact for a circle and a flat ellipse and is about 5 times less accurate than the YNOT formula (both for low eccentricities and over the entire range, with a worst relative error exceeding 1.72 % for an ellipse of eccentricity near 0.983). This goes to show that even wild guesses can be fairly accurate if they turn out to be symmetrical.
In 1932, E.H. Lockwood had proposed a similar approximation of the perimeter of an ellipse, which has a worst relative error of almost -0.9% (when e»0.9598). It's about four times less accurate than the YNOT formula for a round ellipse:
P » (4b2/a) arctg (a/b) + (4a2/b) arctg (b/a) = p (a+b) [1 + (4-12/p)h + ...]
On 2004-08-02, Ricardo Bartolomeu asked us again to evaluate yet another [slightly less messy] trigonometric approximation for the perimeter of an ellipse, which could be reduced to the following asymmetrical formula:
P » p Ö | 2(a2+b2) | sin(x) / x where x = (1-b/a) p/4 |
Again, this is defined by continuity for a = b (sin(x)/x tends to 1 as x tends to 0) and the formula is exact for a circle, a flat ellipse, or an ellipse of eccentricity:
0.88729428292031793745442629632208285906244622844440758655...
Below that, the relative error is negative but never worse than -0.184 % (for eccentricities around 0.766764) above that, it's positive but never worse than +0.9822 % (almost reached for an ellipse of eccentricity around 0.991233).
For the perimeter of an ellipse of low eccentricity e, the relative error is:
-e4 (p2-6) / 384 + e6 (12-p2 ) / 768 + O(e8)
That's more than 9.23 times worse than the commensurable YNOT formula...
David Rivera (of the Naval Undersea Warfare Center, RI) has contacted us to share the approximative formula for the circumference of an ellipse which he developed around 1997 and has used in his antenna work:
P » 4 |
æ è |
p ab + (a-b) 2 | ö ø |
89 | æ è |
aÖb - bÖa | ö 2 ø |
||||
a + b | 146 | a + b |
This formula clearly gives the correct circumference for a circle (a = b) and a flat ellipse (b = 0). It is also exact for an ellipse of eccentricity
e = 0.986118932960305275314772672749686388...
For a rounder ellipse, Rivera's formula features a negative error which is never worse than -103.70 ppm (when e is around 0.9329538). For a flater ellipse, the error is positive, but never worse than +103.73 ppm (for e around 0.99811). All told, the relative error of Rivera's 1997 formula is always better than 104 ppm and is thus almost as good as Cantrell's 2001 formula. (104 ppm vs. 83 ppm)
The value p = 89/146 is a good rational approximation to the value which minimizes the magnitude of the worst relative error(s) in a parametrized formula which, incidentally, could be rewritten as follows, for any value of p :
P » p (a+b) [ 1 + (4/p-1) h - (p/4p) {1 - h - (1-h) 3/2 } ]
For any p, the parametrized Rivera formula is exact in the case of a circle (h=0) or a flat ellipse (h=1). The optimal value of p for low eccentricities is 32-10p.
David F. Rivera had submitted another approximation to the perimeter of an ellipse among errata to the 30th edition of the Standard Mathematical Tables and Formulae (CRC Press)... This formula is the only one of its kind given in the 31st edition. [ Thanks to David Cantrell for pointing this out. ]
P » 2a [ 2 + (p - 2) (b/a) 1.456 ]
This asymmetrical expression is exact for a circle or a flat ellipse. The relative error is also zero for an ellipse of eccentricity around 0.921271. Below that point, it's negative but never worse than -0.447 % (around 0.7129); above that point, it's positive but never worse than +0.439 % (around 0.9883).
Cantrell considers approximations to the perimeter of the ellipse of the form:
P » 4(a+b) - 2(4-p) ab / f
In his original 2001 proposal, Cantrell had used f = [ ½ (ap+bp) ] 1/p, namely the Hölder mean of the principal radii ( p = 33/40 yields an 85 ppm accuracy).
Seeking better accuracy and computational simplicity, Cantrell now introduces a two-parameter expression for f (the more parameters to optimize, the better) which makes f equal to a when a = b, for any choice (within limits) of p and k :
f = p (a + b) + [ (1-2p) / (k+1) ] Ö | (a + kb)(ka + b) |
For an ellipse of low eccentricity, the formula yields an optimal O(h3) error when:
Numerically, that's approximatively k = 133 and p = 0.412. However, Cantrell's primary concern is to minimize the worst relative error. For this, he settles on k = 74 and uses an approximation of the corresponding optimal value of p (0.410117...) to claim an overall accuracy of 4.2 ppm.
In 1773, Leonhard Euler (1707-1783) gave an exact expansion for the perimeter of an ellipse which may be expressed as a power series of the quantity d defined below. By itself, the first term of this expansion gives Euler's crude approximation, which has already been discussed above...
| [ 1 - 2-4 d - 15´2-10 d2 - 105´2-16 d3 - ... ] | ||||
| ån (d/16)n (4n-3)!! / (n!)2 |
where d = [ (a2 - b2 ) / (a2 + b2 ) ] 2 = 4h / (1+h)2
This formula for the perimeter of an ellipse converges slightly faster than Maclaurin's asymmetrical expansion in terms of powers of e [with the major radius factored out] but it's much worse than the symmetrical Gauss-Kummer expression [with the sum of the radii factored out].
For a flat ellipse, expanding up to d n
yields a relative error of 1/16n+O(1/n2).
(Another approach is thus recommended for a flat ellipse.)
Some of the above exact formulas for the circumference of an ellipse may be expressed using Gauss's (1812) hypergeometric function F (also denoted 2F1 ).
Author | Date | Perimeter of the Ellipse | ||||||
---|---|---|---|---|---|---|---|---|
Colin Maclaurin | 1742 | 2pa F(½, -½; 1; e2 ) | ||||||
Leonhard Euler | 1773 |
|
||||||
James Ivory (*) | 1796 | p(a+b) F(-½, -½; 1; h) | ||||||
Arthur Cayley | 1876 | Best for high eccentricities. |
(*) In fact, the Gauss-Kummer series first appeared in the earliest memoir ever published by the Scottish mathematician Sir James Ivory (1765-1842; knighted in 1831): A New Series for the Rectification of the Ellipse, Transactions of the Royal Society of Edinburgh, volume 4, part II, pp.177-190 (1796).