% Create a graph of f
% Make sure the file f.m is contained in the same folder as this file
% Inputs: xmin = minimum x value to graph
%         xmax = maximum x value to graph
% Output: a graph

function graphf(xmin,xmax)

% Create 1000 x values to graph
n = (xmax-xmin)/1000;
x = [xmin:n:xmax];

% Create 1000 f(x) values to graph
for i = 1:length(x)
   F(i) = f(x(i)); 
end

% Create plot
plot(x,F,'r.')
xlabel('x')
ylabel('f(x)')