code write-up for www.mathworks.com/moler/exm/chapters/iteration.pdf
x = 3 for k = 1:31 x = sqrt(1 + x) end