Question: Q 8 . a ) Evaluate the following integral 0 x c o s 2 ( x ) d x using Gauss quadrature integration with

Q8. a) Evaluate the following integral
0xcos2(x)dx
using Gauss quadrature integration with 4 points with the following coordinates and weights (the ones given in our textbook
are not accurate enough).
Provide the result and the true error. For the true value, either perform analytical integration, or use MATLAB's integral
function.
b) Write a MATLAB code that calculates the integral using trapezoidal rule and determine the number of segments necessary
to have roughly the same accuracy.
c) Write a MATLAB code that calculates the integral using Simpson's 1/3 rule and determine the number of segments necessary
to have roughly the same accuracy.
d) Write a MATLAB code that calculates the integral using Simpson's 3/8 rule and determine the number of segments necessary
to have roughly the same accuracy.
 Q8. a) Evaluate the following integral 0xcos2(x)dx using Gauss quadrature integration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanical Engineering Questions!