comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: mean() function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mean() function [message #46933 is a reply to message #46930] Tue, 10 January 2006 15:13 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Kenneth Bowman wrote:
> In article <1136932449.216202.42760@g44g2000cwa.googlegroups.com>,
> biocpu@yahoo.com wrote:
>
>
>> y = fltarr(1008879)+35
>
>
> Looks like roundoff error to me
>
> IDL> y = fltarr(1008879)+35
> IDL> print, mean(y)
> 35.0497
> IDL> print, mean(y, /double)
> 35.000000
> IDL> y = dblarr(1008879)+35
> IDL> print, mean(y)
> 35.000000

Huh. I don't see this in single precision (see other post). What version of IDL did you use?

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: reading a ninary file
Next Topic: mean() function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:58:26 PDT 2025

Total time taken to generate the page: 1.83878 seconds