Integration of Piecewise Continuous Functions