comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: OT: definition of "significant figures"
Date: Sun, 31 Jul 2005 02:02:59 -0500
Date: 2005-07-31T02:02:59-05:00	[thread overview]
Message-ID: <hqSdnVh21K8-6nHfRVn-uQ@comcast.com> (raw)
In-Reply-To: pan.2005.07.30.23.44.26.119@linuxchip.demon.co.uk.uk.uk

> Significant figures = Log10 (mean / standard deviation) + C
>
> I think people also add in the (small) constant, for
> good measure, depending on how they feel about the data distribution.
   I've posted at
home.comcast.net/~tommoran4/sigfig.zip
a package to print the average of a set of measurements to the "right"
number of significant figures, and to get the error implied by the
figures in a value read in.  I used
  Sigfig_Count := Integer(- Long_Float'Floor(Log(Sd / abs (Avg), 10.0)));
rather than rounding the log.  I'm not sure I always agree with the
result, but it seems within a quibble of right.  The routine also seems
excessively long for what it does, but a better approach isn't obvious.



  reply	other threads:[~2005-07-31  7:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29  4:23 OT: definition of "significant figures" tmoran
2005-07-29 14:46 ` Jacob Sparre Andersen
2005-07-30 23:44   ` Dr. Adrian Wrigley
2005-07-31  7:02     ` tmoran [this message]
2005-08-01  7:31     ` Jacob Sparre Andersen
2005-07-31  8:36 ` Dmitry A. Kazakov
2005-07-31 19:08   ` tmoran
     [not found] <e3nqe19bqp99h20anetgc7m63ai8ol84nv@4ax.com>
2005-08-01  4:11 ` tmoran
2005-08-01  6:50 ` tmoran
2005-08-01 16:58   ` tmoran
2005-08-01 23:56     ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox