Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions