cubsfan334
Programmer
Hi, I have one more question: How would I make a recursive function? For example I could have these equations:
a1 = (x1 - x2) * t
a2 = (y1 - y2) * t
x1f = 5 * a1
y1f = 5 * a2
I need a do loop that will calculate x1f and y1f when t=1, then plug in the previously generated xf1 for x1 and yf1 for y1 when t=2, etc, and keep doing that.
How would I program this?
Thanks,
cubsfan
a1 = (x1 - x2) * t
a2 = (y1 - y2) * t
x1f = 5 * a1
y1f = 5 * a2
I need a do loop that will calculate x1f and y1f when t=1, then plug in the previously generated xf1 for x1 and yf1 for y1 when t=2, etc, and keep doing that.
How would I program this?
Thanks,
cubsfan