Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python': 0.08; 'folks,': 0.09; 'problem:': 0.09; 'received:209.85.216.53': 0.09; 'received :mail-qw0-f53.google.com': 0.09; 'solution,': 0.09; 'subject:error': 0.09; '(say': 0.16; 'error)': 0.16; 'from:addr:fetchinson': 0.16; 'from:name:daniel fetchinson': 0.16; 'parentheses': 0.16; 'psss,': 0.16; 'subject:result': 0.16; 'url:putitdown': 0.16; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'subject:" ': 0.28; 'message-id:@mail.gmail.com': 0.29; 'problem': 0.29; 'subject:format': 0.30; "didn't": 0.30; 'error': 0.30; 'from:addr:googlemail.com': 0.31; 'values': 0.32; 'error.': 0.32; 'daniel': 0.34; 'to:addr:python-list': 0.35; 'received:google.com': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'should': 0.38; 'non': 0.38; 'received:209': 0.39; 'put': 0.40; 'to:addr:python.org': 0.40; 'relevant': 0.71; 'sense"': 0.84; 'so:': 0.84; 'subject:its': 0.84; 'expresses': 0.91; 'solved.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bR/2oQfD9RY+vCfQLZJc/WKfpyHrW1I+w5LzljyG3WI=; b=fBW8d2aPV8Dv5LU3PnpU86epBol3yynRM6XB4WGGurCCfhkh1CS/T6wsC7oN6IS7EF mzsMlUMMIq0mfKQmjKKXWv4ipOxQhPzRWQQacEsEE/TA/+a7IwYNUvy2JDxX+kOi7WCK yVP1kWN/HxrP7yOahFw8hm1bDy2S5/bzSbSys= MIME-Version: 1.0 In-Reply-To: <955b9613-2386-40ef-bbf7-c60ef623b0cd@k6g2000vbz.googlegroups.com> References: <955b9613-2386-40ef-bbf7-c60ef623b0cd@k6g2000vbz.googlegroups.com> Date: Fri, 17 Feb 2012 11:03:42 +0100 Subject: Re: format a measurement result and its error in "scientific" way From: Daniel Fetchinson To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329473025 news.xs4all.nl 6913 [2001:888:2000:d::a6]:57762 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20546 >> Hi folks, often times in science one expresses a value (say >> 1.03789291) and its error (say 0.00089) in a short way by parentheses >> like so: 1.0379(9) > > Before swallowing any Python solution, you should > realize, the values (value, error) you are using are > a non sense : > > 1.03789291 +/- 0.00089 > > You express "more precision" in the value than > in the error. My impression is that you didn't understand the original problem: given an arbitrary value to arbitrary digits and an arbitrary error, find the relevant number of digits for the value that makes sense for the given error. So what you call "non sense" is part of the problem to be solved. Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown