Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can a computer science tutor that is familiar with PYTHON PROGRAMMING help me with number 2 AND 3 from the problem statement. Determining the area

Can a computer science tutor that is familiar with PYTHON PROGRAMMING  help me with number 2 AND 3 from the problem statement. 

Determining the area under a curve: There are several methods to determine the area under a curve numerically. Two of the most popular methods is the Trapezoidal Rule and the 3/8 Simpsons Rule. Below is the Pseudo code as well as the Python program to determine the area under a curve using these two methods. You need to understand how these two methods work. For the assignment, you are required to do the following: 1) Discuss the mathematics underpinning these two methods. 2) Using the PYTHON program given, draw up the flow diagram. 3) Do not copy the pseudocode given but redo the pseudocode in your own words. 4) Write down the PYTHON program given. Trapezoidal Rule: Trapezoidal Method Algorithm | 1. Start 2. Define function f(x) 3. Read lower limit of integration, upper limit of integration and number of sub interval 4. Calcultae: step size = (upper limit - lower limit) /number of sub interval 5. Set: integration value = f (lower limit) + f (upper limit) 6. Set: i = 1 7. If i > number of sub interval then goto 8. Calculate: k = lower limit + i * h 9. Calculate: Integration value = Integration Value + 2* f(k) 10. Increment i by 1 i.e. i = i+l and go to step 7 11. Calculate: Integration value = Integration value step size/2 12. Display Integration value as required answer 13. Stop

Step by Step Solution

3.28 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

Star Trapezoidal method Define the function fx Read lowe... 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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Calculate the ratio of effusion rates for Ar and Kr.

Answered: 1 week ago

Question

A router with TCP port 2 2 open allows clients to establish what

Answered: 1 week ago