integrate (1/(0.5*10^-3))*10*sin(2*pi*1000*x) from 0.0005 to 0.001