left end point method vs. simpson's rule for x cos x from 1 to 3