Re: area summing problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Mar 11 2012 - 08:38:44 MDT

This behavior can not be replicated.

One simple test:

  x = random_normal(0,5, (/5,20,30/) )
  x1 = sum(x(0,:,:)) + sum(x(1,:,:))
  x2 = sum(x(0:1,:,:))
  xd = x2-x1
  print(x1+" "+x2+" "+xd)

On 3/11/12 12:59 AM, sk wrote:
> Hi There,
> I can't understand why the following happen:
>
> print(sum(emi(0,:,:))+sum(emi(1,:,:)))
> 294721.4
> print(sum(emi(0:1,:,:)))
> 294711.3
>
> what is the explanation please?
>
> Regards,
> Izo
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Mar 11 08:38:53 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 20 2012 - 15:27:15 MDT