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

Home » Public Forums » archive » Incorrect behavior of /NAN
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: Incorrect behavior of /NAN [message #30141 is a reply to message #30033] Fri, 05 April 2002 17:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
James Kuyper (kuyper@gscmail.gsfc.nasa.gov) writes:

> The number of ball bearings produced in a given city during a specified
> time period can be expressed as a sum over the amounts produced by each
> ball bearing plant in that city. What should the value of that sum be,
> for a city that has no ball bearing plants? I'd say that it's definitely
> a number, and definitely 0. I think that this is the most reasonable
> value for the sum of almost any variable-length list, when that list
> happens to have a length of 0. It's also the natural result of the most
> obvious algorithm for calculating the sum.

I agree. I was thinking about this while I was
feeding balls to my tennis team. (Don't ask,
please.) A sum is a counting operation.

"How many marbles are in the box?"

"None. The box is full of cupcakes."

Then the sum of marbles in the box is 0.

Seems pretty straightforward to me. But then
I've never understood the whole Christian/Muslim
thing either. :-(

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vector Field Plot on Irregular Grid
Next Topic: Vector Field Plot on Irregular Grid

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

Current Time: Wed Oct 08 19:17:29 PDT 2025

Total time taken to generate the page: 0.01008 seconds