function [ fPrime ] = derivative( f )
%DERIVATIVE Generates a new function that approximates the derivative of f

h = 1e-10;
fPrime = @(x) ( f(x+h) - f(x-h) ) / (2*h);
end

