Post Reply 
Yet another π formula
11-25-2024, 10:01 PM
Post: #24
RE: Yet another π formula
Σ((-1)^k/(2k+1), k=0..inf) = atan(1) = pi/4
Σ((-1)^k/(2k+1)/(2k+3), k=0..inf) = (pi/4 - 0.5/(1)) / 1 = pi/4 - 1/2
Σ((-1)^k/(2k+1)/(2k+3)/(2k+5), k=0..inf) = ((pi/4 - 1/2) - 0.5/(1*3)) / 2 = pi/8 - 1/3
...

With this pattern, we can build formula for left hand side, S = pi / c1 - c2

lua> N = 40 -- number of consecutive odd numbers for LHS denominator
lua> c1, c2, t = 4, 0, 1 -- start from atan(1) = pi/4
lua> for i=2,N do c1=c1*(i-1); c2=(c2+0.5/t)/(i-1); t=t*(2*i-1) end

pi = c1*c2 + c1*S

lua> c1*c2 -- close enough to pi, we only need tiny correction.
3.141592653588783
lua> c1*c2 + c1 * (1-1/(2*N+1))/t -- 2 terms for S
3.141592653589793
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Yet another π formula - Gerson W. Barbosa - 01-04-2021, 08:41 PM
RE: Yet another π formula - Albert Chan - 01-05-2021, 10:50 PM
RE: Yet another π formula - Albert Chan - 01-06-2021, 01:32 AM
RE: Yet another π formula - Albert Chan - 01-07-2021, 09:56 PM
RE: Yet another π formula - Albert Chan - 11-25-2024 10:01 PM
RE: Yet another π formula - Albert Chan - 11-26-2024, 01:32 AM
RE: Yet another π formula - toml_12953 - 01-06-2021, 02:10 AM
RE: Yet another π formula - ttw - 01-06-2021, 03:44 AM
RE: Yet another π formula - Albert Chan - 01-09-2021, 09:22 PM
RE: Yet another π formula - Albert Chan - 11-06-2021, 06:28 PM
RE: Yet another π formula - Thomas Klemm - 11-24-2024, 01:59 PM
RE: Yet another π formula - Albert Chan - 11-25-2024, 01:47 PM
RE: Yet another π formula - Albert Chan - 11-26-2024, 01:28 PM
RE: Yet another π formula - Ren - 11-25-2024, 01:08 AM
RE: Yet another π formula - Thomas Klemm - 11-25-2024, 06:47 PM
RE: Yet another π formula - EdS2 - 11-26-2024, 02:09 PM
RE: Yet another π formula - Albert Chan - 11-26-2024, 05:57 PM
RE: Yet another π formula - AnnoyedOne - 11-26-2024, 02:19 PM
RE: Yet another π formula - C.Ret - 11-26-2024, 03:42 PM
RE: Yet another π formula - AnnoyedOne - 11-26-2024, 05:37 PM
RE: Yet another π formula - EdS2 - 11-27-2024, 09:14 AM



User(s) browsing this thread: 2 Guest(s)