function f = manf(x,t); % MANF Compute manufactured nonhomogeneity for problem 4c on A#5 CC = pi^2 / 2^2; f = cos(pi*x/2) * ( 1 + t * (CC * (1+2*x) - 3) );