Translation

powered by

Computing (FOLDOC) dictionary
(also found in
English - English (Wordnet), )

iteration

programming Repetition of a sequence of instructions. A

fundamental part of many algorithms. Iteration is

characterised by a set of initial conditions, an iterative

step and a termination condition.

A well known example of iteration in mathematics is

Newton-Raphson iteration. Iteration in programs is expressed

new_x = n/2;

do

x = new_x;new_x = 0.5 * (x + n/x); while (abs(new_x-x) @# epsilon);

Iteration can be expressed in functional languages using

recursion: