% script for doing problem 4 on practice quiz 1
x=1/3;
for k=1:10
   x=4*x*(1-x);
end
x
