function [y] = hw1afn(x)

   y = cos(x)-x;

end
