design by C++
Using subroutines write a program to perform numericalintegration of
f(x)=x^2*sin(x)*exp(x^2) over x=[0,Pi] having a choice of
(i) rectangularrule
(ii) the Simpson’srule
Divide the domaininto N subsections, where N=5,10,20,40. Compare your results.
Expert Answer
An answer will be send to you shortly. . . . .