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

Daniel Fetchinson fetchinson at googlemail.com
Fri Feb 17 11:03:42 CET 2012


>> 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



More information about the Python-list mailing list