f=@(x)1./x; R = rectangle_int(f,1,2,100) R = trapz_int(f,1,2,100) R = homer_int(f,1,2,100)