Part C: Function, for and plotting We did a project in the lecture on calculating the free fall speeds and plotting them on a graph. This part is similar to the project. An engineer has derived a relationship between the force applied to a material and the extension in length that the force would cause. The relationship between force fand extension e is given by: e= [5.5f [f²-10f +55 if 0 ≤ f ≤ 10 if 10 < f < 20 You are asked to plot a graph showing the relationship between force and extension. You are asked to complete the following tasks: Task 1 Write a Python function which returns the value of e for a given input f. Do not use literals (e.g. 5.5, 10) in the expressions for e in the function. Instead you should define constants and use them. Note that the relationship between e and f depends on whether fis bigger than 10 or not, this means you need a certain Python construction in your function. If you can't think of that, have a look at Part A of Lab03.
Part C: Function, for and plotting
We did a project in the lecture on calculating the free fall speeds and plotting them on a graph. This part is similar to the project.
An engineer has derived a relationship between the force applied to a material and the extension in length that the force would cause. The relationship between force f and extension e is given by:
You are asked to plot a graph showing the relationship between force and extension. You are asked to complete the following tasks:
Task 1
Write a Python function which returns the value of e for a given input f. Do not use literals (e.g. 5.5, 10) in the expressions for e in the function. Instead you should define constants and use them.
Note that the relationship between e and f depends on whether f is bigger than 10 or not, this means you need a certain Python construction in your function. If you can't think of that, have a look at Part A of Lab03.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images