Given the partition {0,π2,π}, ˉx1=π2, and ˉx2=π, find the Riemann sum R(P) for the integral π0sin(x)dx.

Problem: 

Given the partition {0,π2,π}, ˉx1=π2, and ˉx2=π, find the Riemann sum R(P) for the integral π0sin(x)dx.

Answer: 

R(P)=π/2