logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
291 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Ernest BanisterComputer science
(5/5)

576 Answers

Hire Me
expert
ShreyeshComputer science
(/5)

634 Answers

Hire Me
expert
Witi HydeGeneral article writing
(5/5)

926 Answers

Hire Me
expert
Aaryan KhannaGeneral article writing
(5/5)

590 Answers

Hire Me
Python Programming
(5/5)

In Simpson’s 3/8 Method, a cubic (third-order) polynomial is used to approximate the integrand.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Part 1. Derivation of Simpson’s 3/8 Method

In Simpson’s 3/8 Method, a cubic (third-order) polynomial is used to approximate the integrand.

  

Third order polynomial in Newton’s form can be written as:

P_3 (x)= b_0+b_1 (x-x_1 )+b_2 (x-x_1 )(x-x_2 )+b_3 (x-x_1 )(x-x_2 )(x-x_3 )              (2)

 

  

 

The coefficients of a cubic polynomial can be determined from 4 points. For an integral over the domain [a, b] , the four points used are the two endpoints a, b and x2 and x3 , as shown in Figure 1. 

 

Once the constants in Eqn. 2 are determined, the polynomial can be easily integrated to give:

 

∫_a^b▒〖f(x)dx=〗 ∫_a^b▒〖P_3 (x)dx=3h/8 [f(a)+3f(x_2 )+3f(x_3 )+f(b)]            (3)〗

 

Part 1 of this project does not need programming. Please submit a typed document. Handwritten document will be accepted with (5% grade deduction). 

 

Steps to follow:

Write a 3rd order Newton polynomial (i.e: Eqn 2)

Explicitly write the coefficients of the polynomial

Carry out the integration (Eqn 1). At the end of step 3, you supposed to get Equation (3)

 

Part 2. Writing a Python code for Simpson’s 3/8 Method

 

The general formula for Simpson’s 3/8 Method is written as 

∫_a^b▒〖f(x)dx=〗  3h/8 [f(a)+3∑_(i=2,5,8)^(n-1)▒[f(x_i )+f(x_(i+1))] +2∑_(j=4,7,10)^(n-2)▒〖f(x_j 〗)+f(b)]                     (4)

 

 

Write a Python user-defined function Simpson_3_8, that takes end points of the interval (a,b) and number of panels as parameters. 

Your function should check if the number of panels is divisible by 3. If number of panels is not divisible by 3, your function should print out an error message and exit.

The function should return the result of the integration given in equation 4.

 

 

 

 

Part 3. 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) (see Figure 2).and its line of action can be calculated as:

 

 

The total force due to the distributed force is

F=∫_0^H▒f (z)dz         (5)

The location of the line of action, d, of F is the effective location of the force F.

 

d=(∫_0^H▒z f(z)dz)/(∫_0^H▒f (z)dz)           (6)

 

For example, if 

 

f(z)=200z [N⁄m]

 

with z ranging from 0 to 15 m.

 

F=∫_0^(15 m)▒200 zdz=(100z^2 )_0^(15 m)=100(〖15〗^2-0)=2.25x〖10〗^4 N

 

The line of action would be:

 

d=(∫_0^H▒z f(z)dz)/(∫_0^H▒f (z)dz)=1/(2.25x〖10〗^4  N) ∫_0^(15 m)▒200 z^2 dz=1/(2.25x〖10〗^4  N)  200/3 (〖15〗^3-0)=10 m

 

 

 

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 two different ways:

 

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..

 

Use your python code for Simpson’s 3/8 rule to compute both F and 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 case.

 

(5/5)
Attachments:

Expert's Answer

291 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme