<DIV><FONT color=#800000>Hi;</FONT></DIV> <DIV><FONT color=#800000></FONT> </DIV> <DIV><FONT color=#800000>I have some problems about the v.surf.idw.</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> First of all, I couldnt understand why the distances calculated without</FONT><FONT color=#800000> using sqrt. I mean;</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> list[i].dist = dy*dy + dx*dx</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> why this is not:</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> list[i].dist = sqrt(dy*dy+dx*dx) in the functions calculate_distances and</FONT><BR><FONT color=#800000>calculate_distances_noindex.</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> The second problem and the last for now is that:</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> in main code;</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000>
nsearch = npoints < seacrh_points ? npoints : seacrh_points</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> and search_points is defined 12 globally. So, nseach can nat be bigger</FONT><BR><FONT color=#800000>than 12. But again in the functions calculate_distances and</FONT><BR><FONT color=#800000>calculate_distances_noindex there are two for loops:</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> one is ;</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> for(i=0;i<nsearch;i++){</FONT><BR><FONT color=#800000> ..</FONT><BR><FONT color=#800000> }</FONT><BR><FONT color=#800000> the other;</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> /* go thru rest of the points now */</FONT><BR><FONT color=#800000> for(;i<npoints;i++){</FONT><BR><FONT color=#800000> ..</FONT><BR><FONT color=#800000> }</FONT><BR><FONT color=#800000> What is the rest?? nsearch is either equal to
npoints or bigger than npoints.</FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000> </FONT><BR><FONT color=#800000>Yours respectfully</FONT></DIV> <div><FONT color=#800000></FONT> </div> <div><FONT color=#800000>Muzaffer Ayvaz</FONT></div> <div><FONT color=#800000>Istanbul Technical University</FONT></div> <DIV><BR></DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>