f = @(x) exp(x); % Define an anonymous function to implement numerical integration
rect_integrate(f,0,1) - (exp(1)-1)
trap_integrate(f,0,1) - (exp(1)-1)
simp_integrate(f,0,1) - (exp(1)-1)