Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.066 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'limit,': 0.07; 'correct.': 0.09; 'output': 0.10; 'archive,': 0.16; 'calculating': 0.16; 'limit.': 0.16; 'received:209.85.213.174': 0.16; 'received:mail- yx0-f174.google.com': 0.16; 'rewrote': 0.16; 'sigma': 0.16; 'url:pastebin': 0.16; 'wrote:': 0.16; 'thanks,': 0.18; '<>.': 0.19; 'figure': 0.21; 'math': 0.21; 'missed': 0.24; 'pm,': 0.24; 'checked': 0.24; 'aug': 0.24; 'up.': 0.26; '(see': 0.28; 'compare': 0.28; 'message-id:@mail.gmail.com': 0.29; 'script': 0.29; 'accidentally': 0.30; 'values': 0.32; 'list': 0.32; 'expression': 0.32; 'does': 0.32; "what's": 0.33; 'it.': 0.33; "can't": 0.33; 'to:addr:python-list': 0.33; "i've": 0.34; 'thank': 0.35; 'post': 0.36; 'partial': 0.37; 'using': 0.37; 'several': 0.37; 'but': 0.37; 'two': 0.37; 'not,': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'to:addr:python.org': 0.39; "i'd": 0.40; "it's": 0.40; 'below': 0.62; 'lower': 0.64; 'reply': 0.64; 'series': 0.65; 'limit': 0.66; 'show': 0.67; 'saw': 0.69; 'subject:The': 0.72; 'verified': 0.73; 'dick': 0.84; 'url:images': 0.85; 'url:jpg': 0.86; 'subject:Series': 0.91; '150': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=Kh5uNyTjIoH374lZn+4vHELoT50cjsAppPSODFwvpjo=; b=WGHlp+BbowbvQCCWPQh9uRZ1xTiol+dCrXUKvHhslIdvuKJCCC3hU4sD1bq+Uj9Jb3 0pq62iYmU3EcxVM6gDc+o8EJfa9h7Eu7wvCiEcqM+A3DXUKN8++iUIgQuvfETzqPDoBA /f/z96as60/t+eKc3cCe/ZTMBH9giuWS31yP8= MIME-Version: 1.0 From: "Richard D. Moores" Date: Fri, 12 Aug 2011 03:52:47 -0700 Subject: Puzzled about the output of my demo of a proof of The Euler Series To: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313146391 news.xs4all.nl 23944 [2001:888:2000:d::a6]:45414 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11268 For the first time in my 7 years of using Gmail, I accidentally deleted my original post and it's one reply by casevh. I found both in the list archive, and with this post both quote casevh's reply and answer it. Sorry about my screw up. On Aug 10, 4:57 pm, "Richard D. Moores" wrote: > I saw an interesting proof of the limit of The Euler Series on > math.stackexchange.com at > . > Scroll down to Hans Lundmark's post. > > I thought I'd try to see this "pinching down" on the limit of pi**2/6. > See my attempt, and output for n = 150 at > . What puzzles me is that > upper_bound_partial_sum (lines 39 and 60) is always smaller than the > limit. It should be greater than the limit, right? If not, no pinching > between upper_bound_partial_sum and lower_bound_partial_sum. > > I've checked and double-checked the computation, but can't figure out > what's wrong. > > Thanks, > > Dick Moores The math is correct. The proof only asserts that sum(1/k^2) is between the upper and lower partial sums. The upper and lower partial sums both converge to pi^2/6 from below and since the sum(1/k^2) is between the two partial sums, it must also converge to pi^2/6. Try calculating sum(1/k^2) for k in range(1, 2**n) and compare that with the upper and lower sums. I verified it with several values up to n=20. casevh ===================Dick Moores' reply=================== Thank you! I had missed the 2^n -1 on the top of the sigma (see my image of the inequality expression at . So I rewrote the script and now it does what I intended -- show the pinching down on sum(1/k^2) by the upper sums and the lower sums for successively larger n. See the new script at . Dick