Question: Repeating an iteration process

Hey,

I know this might seem a bit trivial but I'm trying to get Maple to use iteration to get the shortest path between two points given initial conditions that aren't a straight line. (I'm learning how to do it in the simplest form before moving on to a 3D problem.)

So I have a initial set of points that are to be moved during the process and split them into their x and y components so there's a set of x[j]'s and y[j]s.Then I defined a couple of procedures to use in the iteration.

So I wrote the following to update all of the points once:

 

 

This works for one step but how do I get it to keep on repeating this iteration until the values for ABS and AABS are <10^(-5) ??

Thanks,

Rachael:)

simple_iteration.mw

 

Please Wait...