while loop repeats a group of statements an indefinite number of times under control of a logical condition. A matching
end delineates the statements.
Here is a complete program, illustrating
end, that uses interval bisection to find a zero of a polynomial.
The result is a root of the polynomial x3 - 2x - 5, namely
The cautions involving matrix comparisons that are discussed in the section on the
if statement also apply to the