07-03-2006 04:33 AM
07-03-2006 07:15 AM
07-27-2006 09:53 AM
07-27-2006 11:07 AM
Your comparison is actually working fine in most cases (I very much agree with being careful about comparing floating point numbers). But you're problem in your original code also boils down to the fact that when you divide waveforms, you divide element per element. One of these elements in the denominator was zero, so the output waveform had a NaN in it. When you try to compare the waveform by aggregate against zero, the NaN in the first element of the waveform is causing the problems with your answer. If you change the comparison mode to Compare Elements, this will output an array of booleans. Here you see that the first element was false, but the next few were all true. You will have to account for this somehow.
07-27-2006 11:23 AM - edited 07-27-2006 11:23 AM
Message Edited by jasonhill on 07-27-2006 11:24 AM