Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion NOTE SUBMISSION
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Press  
View profile  
 More options Feb 8, 5:55 am
Newsgroups: sci.math
From: Michael Press <rub...@pacbell.net>
Date: Sun, 08 Feb 2009 02:55:24 -0800
Local: Sun, Feb 8 2009 5:55 am
Subject: Re: NOTE SUBMISSION
In article
<1810883.1233935248698.JavaMail.jaka...@nitrogen.mathforum.org>,
 Shahram Zafary <shahram_zaf...@yahoo.com> wrote:

> Dear Sir;

> I have found out a single term formula for approximating the circumference of ellipse and I hope to print, and publish it. This formula is very simple and accurate.
> I will be grateful if you help and guide me about it.

Arithmetic-Geometric mean:

a_{n+1}  = (a_n + b_n)/2
b_{n+1}  = sqrt{a_n * b_n}
c_{n+1}  = (a_n - b_n)/2
M(a, b)  = lim_{n -> oo} a_n = \lim_{n -> oo} b_n

K(k) and E(k) are the complete elliptic integrals of the
first and second kind.  k' = sqrt{1 - kk}.

K(k)  = int_0^{pi/2} du / sqrt{1-k^2.sin^2 u}    
      = pi / (2.M(1, k'))

E(k)  = int_0^{pi/2} sqrt{1-k^2.sin^2 u} du    
      = (1 - S) K(k)

where S = sum_n 2^{n-1}.(c_n)^2.

The perimeter, A, of an ellipse with semiaxes a and b,
0 < b <= a is given by

    A = 4.a.E(k')
      = (aa - S).2.pi/M(a, b)

where a_0 = a, b_0 = b, c_0 = aa - bb.

This will give the perimeter of the ellipse to 5 significant
figures with 4-6 iterations for e < .99, where e is the
eccentricity. The AGM converges quadratically so one more
iteration will give 10 significant figures.

So unless you know exactly how much accuracy you want at
compile time and are prepared to engineer approximations
for the full range of eccentricities that will be called
for, and absolutely need the speed of specialized
approximations, use the AGM as it will give answers with
accuracy specified at run time, and will not take much
time doing it.

Might as well code up the AGM and see how it performs anyway.

--
Michael Press


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google