right hand end point method x^3 cos(x) from 0 to pi with 2 intervals