[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sumskipnan(nan) = 0 ?
From: |
Francesco Potorti` |
Subject: |
Re: sumskipnan(nan) = 0 ? |
Date: |
Fri, 07 Sep 2007 18:33:17 +0200 |
>> sumskipnan(nan) = 0 ?
>I'm guessing that the sum of the input with all the NaN's removed is
>zero. That is the sum of no numbers is considered 0.
That seems logical. Take the set of arguments, remove NaNs, get an
empty set. I think that the sum of an empty set of numbers should be
0. Why should it be different?
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key