%unfunc1.m: Evaluates utility function for lifecycle problem. %CRRA function. function[x]=ufunc1(c); global gama x=(c^(1-gama))/(1-gama);