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

Home » Public Forums » archive » Re: WHERE problems (longish)
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: WHERE problems (longish) [message #35912 is a reply to message #35911] Tue, 22 July 2003 08:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Panter writes:

> The values which have -1 certainly exist - and were generated in exactly
> the same way as the others. I've put the array online if anyone fancies
> looking at it - http://www.roe.ac.uk/~bdp/where_problem.idl
>
> Am I being stupid again? What is special about 2980,3000 and 3020??

There is nothing special about *those* numbers, but those
are not the numbers you are using in your WHERE statement.
You are using 2980.0, 3000.0, and 3020.0. While there isn't
a big difference between integers and floats to you, there
is a HUGE difference to a computer. Better read these articles:

http://www.dfanning.com/math_tips/sky_is_falling.html
http://www.dfanning.com/math_tips/razoredge.html

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
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
Previous Topic: Multidimensional Interpolation
Next Topic: about replicate_inplace

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

Current Time: Fri Oct 10 04:11:25 PDT 2025

Total time taken to generate the page: 0.08196 seconds