I filed a similar bug report the other day. I believe that it has to do
with the default size of the accumulator variable in the algorithms
being used. Please see the following example,
Python 2.4.3 (#2, Dec 7 2006, 11:01:45)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help"
On Tue, Jan 23, 2007 at 08:29:47PM -0500, Daniel Smith wrote:
> When calling the average() or mean() functions on a small array (3
> numbers), I am seeing significant numerical errors (on the order of 1%
> with data to 8 significant digits). The code I am using is essentially:
>
> A = zeros(3)
>
On 1/23/07, Daniel Smith <[EMAIL PROTECTED]> wrote:
> When calling the average() or mean() functions on a small array (3
> numbers), I am seeing significant numerical errors (on the order of 1%
> with data to 8 significant digits). The code I am using is essentially:
>
> A = zeros(3)
>
> A[i] = X
>
When calling the average() or mean() functions on a small array (3
numbers), I am seeing significant numerical errors (on the order of 1%
with data to 8 significant digits). The code I am using is essentially:
A = zeros(3)
A[i] = X
B = average(A)
Is there something else I need to call to get