1 2 3 4
Iav_by_Im=1/%pi*integrate('sin(wt)','wt',0,%pi) disp(Iav_by_Im) //final answer is wrong in the book