Re: format a measurement result and its error in "scientific" way

2012-02-17 Thread jmfauth
On 17 fév, 11:03, Daniel Fetchinson wrote: > >> 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, err

Re: format a measurement result and its error in "scientific" way

2012-02-17 Thread Ulrich Eckhardt
Am 16.02.2012 01:18, schrieb Daniel Fetchinson: 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) Just so that I understand you, the value of the last "digit" is somewhere between 9-9 and 9+9, ri

Re: format a measurement result and its error in "scientific" way

2012-02-17 Thread Daniel Fetchinson
>> 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 +

Re: format a measurement result and its error in "scientific" way

2012-02-17 Thread Daniel Fetchinson
>> Thanks, it's simpler indeed, but gives me an error for value=1.267, >> error=0.08: >> >> Traceback (most recent call last): >> File "/home/fetchinson/bin/format_error", line 26, in >>print format_error( sys.argv[1], sys.argv[2] ) >> File "/home/fetchinson/bin/format_error", line 9, in for

Re: format a measurement result and its error in "scientific" way

2012-02-17 Thread jmfauth
On 16 fév, 01:18, Daniel Fetchinson wrote: > 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 usin

Re: format a measurement result and its error in "scientific" way

2012-02-16 Thread Ian Kelly
On Thu, Feb 16, 2012 at 3:21 PM, Daniel Fetchinson wrote: > Thanks, it's simpler indeed, but gives me an error for value=1.267, > error=0.08: > > Traceback (most recent call last): >  File "/home/fetchinson/bin/format_error", line 26, in >    print format_error( sys.argv[1], sys.argv[2] ) >  Fil

Re: format a measurement result and its error in "scientific" way

2012-02-16 Thread Daniel Fetchinson
On 2/16/12, Ian Kelly wrote: > On Thu, Feb 16, 2012 at 1:36 AM, Daniel Fetchinson > wrote: 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) One can vary things a bit, but l

Re: format a measurement result and its error in "scientific" way

2012-02-16 Thread Ian Kelly
On Thu, Feb 16, 2012 at 1:36 AM, Daniel Fetchinson wrote: >>> 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) >>> >>> One can vary things a bit, but let's take the simplest case when we >>>

Re: format a measurement result and its error in "scientific" way

2012-02-16 Thread Daniel Fetchinson
>> 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) >> >> One can vary things a bit, but let's take the simplest case when we >> only keep 1 digit of the error (and round it of course) and roun

Re: format a measurement result and its error in "scientific" way

2012-02-15 Thread Ian Kelly
On Wed, Feb 15, 2012 at 5:18 PM, Daniel Fetchinson wrote: > 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) > > One can vary things a bit, but let's take the simplest case when we > only keep 1

format a measurement result and its error in "scientific" way

2012-02-15 Thread Daniel Fetchinson
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) One can vary things a bit, but let's take the simplest case when we only keep 1 digit of the error (and round it of course) and round the value corre