Computational Methods in Engineering

ENGR3703-Computational Methods in Engineering 1
Fall 2020
Due Date: 12/10/2020 by 11:59pm
Please submit the python files (with .py extension) together with your
project document.
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
the f(x).
Equation 1
Equation 2
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:
Equation 3
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:
Equation 4

f ( x)dx=∫
P( x)dx

f ( x)dx=∫
P( x)dx=
[f (a)+3 f ( x2
)+3 f ( x3
)+f (b)]

f (x)dx=
8 [
f (a)+3 ∑
i=2,5,8 ,…
N −1
(f (xi
)+f ( xi+1
))+2 ∑
f ( xj
)+f (b)]
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).
Figure 1
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.
15 m
200 zdz=(100 z
15 m
=100 (152−0)=2.25 x104N
The line of action would be:

zf (z)dz

f (z)dz
2.25 x104

200 z
2.25x 104
Figure 2
f (z)dz
Equation 5

zf (z)dz

f (z)dz
Equation 6
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).
Figure 3
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
part (a).
Table 1. Force on side of a skyscraper.
Height (z in m) Force/height (f(z) in N/m)
0 0
30 340
60 1200
90 1600
120 2700
150 3100
180 3200
210 3500
240 3800
270 4000

Get professional assignment help cheaply

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?

Don't use plagiarized sources. Get Your Custom Essay on
Computational Methods in Engineering
Just from $9/Page
Order Essay

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.

Why choose our academic writing service?

  • Plagiarism free papers
  • Timely delivery
  • Any deadline
  • Skilled, Experienced Native English Writers
  • Subject-relevant academic writer
  • Adherence to paper instructions
  • Ability to tackle bulk assignments
  • Reasonable prices
  • 24/7 Customer Support
  • Get superb grades consistently



Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

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.

Money-back guarantee

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

Zero-plagiarism guarantee

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

Free-revision policy

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

Privacy policy

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

Fair-cooperation guarantee

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

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Open chat
You can contact our live agent via WhatsApp! Via +1 817 953 0426

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code STARS