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

Home » Public Forums » archive » HELP with IF statement
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: HELP with IF statement [message #91278 is a reply to message #91277] Thu, 25 June 2015 08:34 Go to previous messageGo to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Something that I don't understand. I tried to avoid the for loop created before and I replace this part of the code:

for i=0,n-1 do begin
IF floats_equal(A[i],0) THEN RETURN,[0,0]
endfor

By this:

IF norm(A) EQ 0 THEN RETURN, [0,0]

I thought I will end up with the same result but I didn't. Does anyone know why this happen?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BYTSCL function
Next Topic: IDL Site Issues

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

Current Time: Wed Oct 08 11:45:46 PDT 2025

Total time taken to generate the page: 0.00449 seconds