ENGR3703-Computational Methods in Engineering 1
Due Date: 12/10/2020 by 11:59pm
Please submit the python files (with .py extension) together with your
Please upload all your documents to D2L-assignment folder
Background: Simpson’s 3/8 Method
In Simpson’s 3/8 Method, a cubic (third-order) polynomial is used to approximate
P(x) is the third order Newton’s Interpolating polynomial. Using this polynomial
and the definitions of a1 to a4 (found in your textbook and lecture notes) in Eq. 1
to perform the integration and subsequent (and somewhat lengthy algebraic
manipulation) one finds:
This technique as shown integrates only over four points over the interval from a
to b. The accuracy of the integral estimate in Eq. 3 can be improved by
decreasing the spacing of the points. This means one might need repeated
application of Eq. 3 over the entire range from a to b. An example of this is
shown in Figure When the entire interval from a to b is broken into a number of
sub-intervals, N, that is divisible by three, the entire integral can be shown to be:
f ( x)dx=∫
f ( x)dx=∫
[f (a)+3 f ( x2
)+3 f ( x3
f (a)+3 ∑
)+f ( xi+1
f ( xj
Part 1. Writing a Python code for Simpson’s 3/8 Method
Write a Python function simpson_3_8, that takes end points of the interval (a,b)
and number of sub-intervals, N, as parameters, and uses the function, f, to
calculate Eq. .
Your function should check if the number of sub-intervals is divisible by 3. If
number is not divisible by 3, your function should print out an error message and
Part 2. Application of Curve Fitting and Simpson’s 3/8 Methods
Background. The calculation of total force due to a distributed force is an
important engineering calculation:
If you have an object that is H meters tall then the total force, F, due to a
distributed force (f(z) ~ force per unit length dz) and its line of action can be found
(see Figure 2).
The total force due to the distributed force is
The location of the line of action, d, of F is the effective location of the force F.
For example, if
f (z)=200z[N /m]
with z ranging from 0 to 15 m.
200 zdz=(100 z
=100 (152−0)=2.25 x104N
The line of action would be:
When f(x) is a simple function like in the example above, solving Eqs. 5 and 6
can be done analytically (by hand). However, as in Fig. 2, it is more likely that the
functional relationship is complicated. For this situation, numerical methods
provide the only alternative for determining the integrals.
In this part of the project you need to find the total wind force exerted on the side
of a skyscraper and its line of action. The force is distributed and varies with
height. You only know the force per unit height, f(z) at certain discrete z values –
every 30 meters starting at ground level. These values are given in Table 1.
You will find the force and line of action three different ways:
a. Based on the data in Table 1, determine the coefficients of a third order
Newton’s interpolating polynomial that represents f(z). Once you have the
polynomial integrate it as in Eqs. 5 and 6 to determine the total force and
its line of action, F and d ..
a. VERY IMPORTANT – Only do this for the first three segments (first
four points!!). This way you only have a third order polynomial.
b. ALSO VERY IMPORTANT – to compare this to other integration
techniques you will need to use those techniques (parts b and c) for
the first three segments also.
b. Determine values of m and b such that the data in Table 1 are fit by an
equation of the form:
f (z)=b z
If you are curious of why we might expect this force to be of this form see
the last page of this document.
Once, b and m are determined use f(z) to find F and d . Note you will need
to do this from z = 0 to 270 m and from z = 0 to 90 m to compare the
integrals to part (a).
c. Use your python code for Simpson’s 3/8 rule to compute both F and d .
a. Note you will need to do this from z = 0 to 270 m and from z = 0 to
90 m to compare the integrals to part (a).
d. Compare the results for F and d from each technique of calculation…
when we say compare we mean numerically and to analyze how
significant the differences are and why there are differences (or not). This
section of your project is of equal importance to the calculation portions.
This should be a complete analysis of what you did and why there are
differences if any and if there are not significant differences why that is the
a. Again – also compare integrals from z = 0 to 90 to the results of
Table 1. Force on side of a skyscraper.
Height (z in m) Force/height (f(z) in N/m)
Are you busy and do not have time to handle your assignment? Are you scared that your paper will not make the grade? Do you have responsibilities that may hinder you from turning in your assignment on time? Are you tired and can barely handle your assignment? Are your grades inconsistent?
Whichever your reason may is, it is valid! You can get professional academic help from our service at affordable rates. We have a team of professional academic writers who can handle all your assignments.
Our essay writers are graduates with diplomas, bachelor, masters, Ph.D., and doctorate degrees in various subjects. The minimum requirement to be an essay writer with our essay writing service is to have a college diploma. When assigning your order, we match the paper subject with the area of specialization of the writer.
We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.Read more
The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.Read more
The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.Read more
By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.Read more