Question: provide matlab code for thw whole problem Problem 6 [ 2 8 marks ] . A wedge is cut out of a circular cylinder of

provide matlab code for thw whole problem
Problem 6[28 marks]. A wedge is cut out of a circular cylinder of radius 5 by two planes. One plane is
perpendicular to the axis of the cylinder. The other intersects the first at an angle of 45 along a
diameter of the cylinder. See graph below,
a.[4 marks] Find the volume of the wedge.
b.[8 marks] Compute the optimum number of sub-intervals n905 and width hgopt so that the integral in
part a can be evaluated using the composite trapezoidal rule and composite Simpson's 13- rule.
c.[12 marks] Write a program in MATLAB which first computes the optimum value of n,napt, in the
composite trapezoidal rule and composite Simpson's 13- rule and then evaluate the value of the
integral with n=napt+2.
d.[4 marks] Compute the relative errors and use MATLAB function timeit to measure the execution
time of the algorithms with different n in part c. Provide the meaningful comments on the obtained
results.
 provide matlab code for thw whole problem Problem 6[28 marks]. A

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 Databases Questions!