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

Home » Public Forums » archive » Can anyone show me how to do this without loops?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Can anyone show me how to do this without loops? [message #4768] Mon, 31 July 1995 00:00
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Can anyone show me how to code this algorithm without loops?
It's got me stumped.

Data types are:

degree is an integer
i = degree + 1
j = degree + 1
kx = fltarr( i, j ) ; contains polynomial coefficients
ky = fltarr( i, j ) ; contains polynomial coefficients
x0, y0, xi, yi are float variables or vectors

Here is the code:

xi = 0.0
yi = 0.0
for i = 0, degree do begin
for j = 0, degree do begin
xi = xi + kx( i, j ) * x0 ^ j * y0 ^ i
yi = yi + ky( i, j ) * x0 ^ j * y0 ^ i
endfor
endfor

Many thanks,
Liam.
liamg@ssec.wisc.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Limits
Next Topic: Re: writing gif image

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

Current Time: Wed Oct 08 19:14:28 PDT 2025

Total time taken to generate the page: 0.00435 seconds