integrate sin(x) using midpoint method with 3 intervals on [-pi, pi]