%Script for Example 8.1
v=zeros(6,11);
v(:,11)=phi;
for i=10:-1:1
	v(:,i)=max(phi,P*v(:,i+1));
end