Question: Major Assignment 3 Due Thursday, December 5 , 2 0 2 4 The purpose of this major assignment is to consolidate your knowledge of the
Major Assignment
Due Thursday, December
The purpose of this major assignment is to consolidate your knowledge of the material on integration
methods.
You should submit one Matlab file following this naming format: majorID#m
eg majorm
Problem
You are trying to study the forces at several locations in a beam subjected to a uniform load. A free body
diagram showing the relationship between the applied load and the shear and moment forces is provided
below.
For the case of a uniformly distributed load, the shear and moment forces at any point along the span of
the beam are given by:
In this problem, the length of the beam l m and the applied load w kNm
Page of
Task
Find the area under the moment curve for the first quarter of the beams span x to m
To achieve that, prepare a code that utilizes the MultipleApplication Trapezoidal Rule as a multi
line function called Trapezoidal to evaluate the integral of the moment. Then, apply it for all step
sizes n for n
For all tested step sizes, calculate the true error using the analytical solution as the exact answer.
Then, find out what is the maximum step size needed to reach an error rate
Task
Find the moment at every point along the beam span, which equals the integration of the shear
force, use a step size of m Use a multiline function called Romberg, that utilizes the Romberg
Integration method with k values up to
The function should have builtin stopping criteria in terms of the number of iterations maxit
and the error tolerance es
Task
Plot the moment diagram from Task along the span of the beam.
Create a summary output to the command window that only contains the following statements
dynamically updated from the code:
The exact moment area for the first quarter of the beam equals kNm The
Trapezoidal Rule needed a maximum step size of to reach a reasonable
estimate of that range.
The maximum bending moment along the span of the beam was kNm and
it was applied at x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
