[SciPy-user] Vector mean calculation?
Lance Boyle
lanceboyle at cwazy.co.uk
Fri Apr 22 00:35:27 EDT 2005
On Apr 21, 2005, at 5:41 PM, Fernando.Perez at colorado.edu wrote:
> Quoting Thomas Davidoff <davidoff at haas.berkeley.edu>:
>
>> I have a vector with min equal to 412. Why am I getting a negative
>> mean?
>
> Without more details, it's quite difficult to be sure. Most likely,
> because
> it's very long and of integer type (ints are 32 bit objects, so you are
> effectively doing mod 2^31 arithmetic with negative wraparound).
>
Why does Python allow modular arithmetic when the user doesn't request
modular arithmetic?
Lance
More information about the SciPy-User
mailing list