This is a small assignment which can be done within 1 hours by professionals. The details are as follows: (required information an files can be found in attachment)
1. This problem asks you to use C or C++ to numerically integrate the function
(a/x + bx2 &amp;minus; ex /&amp;radic;x)dx
for a = 2, b = 10, x0 = 1 and x1 = 5. Compare the routinestrapzdandqsimpfrom Numerical Recipes in C. If you prefer to use NR in C++, the file quadrature.h contains Trapzd and qsimp. For the two integration methods, create a table of results of the log of the absolute error versus CPU time as the integration accuracy parameter is changed. The exact value of the integral is 342.681288444693835. Plot the results using MATLAB, i.e., have your C code write the table of results to a file, and have MATLAB read the file and plot the results.