%utility function for simple value function iteration.  Written by Philip
%Shaw, Fordham University, 2022.
function [U]=utilchp4(ct,eta)
if eta==1
    U=log(ct);
else
    U=(ct.^(1-eta)-1)./(1-eta);
end
