Create a Python function to calculate the downward velocity of a free-falling bungee jumper. The function...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a Python function to calculate the downward velocity of a free-falling bungee jumper. The function freefall should have as input parameters t(s) the time for the free-fall, m (kg) the mass of the jumper, and Cd (kg/m) the second order drag coefficient for a typical jumper. The output parameters would return v the velocity (m/s). The acceleration of gravity constant is 9.81 m/s and the velocity v can be calculated from v = mg Cd * tanh gCd m * t The Python functions for square root and hyperbolic tangent are not present in basic Python. So you will need to import the math module; the commands for the hyperbolic tangent would be math.tanh(X) and for square root it would be math.sqrt(X). The main program would input the values for time, mass, and the second order drag coefficient, call the function freefall, and print the velocity at time t. For testing purposes, the drag coefficient should be in the range of 0.1 to 0.7 kg/m, and time should be less than 10 seconds. Create a Python function to calculate the downward velocity of a free-falling bungee jumper. The function freefall should have as input parameters t(s) the time for the free-fall, m (kg) the mass of the jumper, and Cd (kg/m) the second order drag coefficient for a typical jumper. The output parameters would return v the velocity (m/s). The acceleration of gravity constant is 9.81 m/s and the velocity v can be calculated from v = mg Cd * tanh gCd m * t The Python functions for square root and hyperbolic tangent are not present in basic Python. So you will need to import the math module; the commands for the hyperbolic tangent would be math.tanh(X) and for square root it would be math.sqrt(X). The main program would input the values for time, mass, and the second order drag coefficient, call the function freefall, and print the velocity at time t. For testing purposes, the drag coefficient should be in the range of 0.1 to 0.7 kg/m, and time should be less than 10 seconds.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
do the following,..... Write program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. Create program that takes in user input...
-
Here are definitions of sequences and trees with integer elements: type iseq = Nil | Cons of int * (unit -> iseq) type itree = Leaf of int | Branch of itree * itree (a) In an ascending sequence such...
-
If you deposit $2,000 today into an account earning an annual rate of return of 9 percent, what would your account be worth In 30 years? a. If you deposit $2, 000 today into an account earning an...
-
During 2016, Shoupe Company was subject to the New Jersey state unemployment tax of 5.1%. The company's taxable wages for FUTA were $93,400 and for SUTA, $194,300. Compute: a. SUTA tax that Shoupe...
-
1. Are you surprised at what Google found out aboutbuilding a better boss? Explain your answer. 2. Whats the difference between encouraging supervisors to be great supervisors and knowing what being...
-
Using an incremental internal rate of return (IRR) analysis, the decision to replace the "current best" by the "challenger"' is based on what decision rule? a. The internal rate of return of the...
-
Lighthouse Company began operations on January 1. Authorized were 25,000 shares of $1 par value common stock and 5,000 shares of 10%, $100 par value convertible preferred stock. The following...
-
The figure shows a schematic diagram of a simple mass spectrometer, consisting of a velocity selector and a particle detector and being used to separate singly ionized atoms (q+e 1.602e-19 C) of gold...
-
You are a new legal assistant and have worked for a medium-sized law office for three months. It has been a tremendous learning experience for you. It has taken time to learn how the office does...
-
8. (x-7) /4 8, find x. =
-
Should the primary antitrust statutes (the Sherman and Clayton Acts) be enforced more strictly against healthcare entities, or less so? Should the strictness of enforcement be dependent on a showing...
-
It is now January. The current interest rate is 5% per annum annual compounding. The June future price for gold is $1846.30, while the December future rice is $1860.00. Find a strategy to explore the...
-
What is the approach to infrastructure protection found within National Infrastructure Protection Plan and Risk Mangement Framework, ie water, electric or nuclear to name a few. Are these plans...
-
Item at position 10 A zero-coupon bond has a yield-to-maturity of 4.1% and 16 years remaining until maturity. What is its price? Use a semi-annual compounding period in your calculations and enter...
-
An object falls freely from rest on a planet where the acceleration due to gravity is twice as much as it is on Earth. In the first 5seconds it falls a distance of a. 250 m. b. 500 m. c. 150 m. d....
-
Identify one local business that uses a perpetual inventory system and another that uses a periodic system. Interview an individual in each organization who is familiar with the inventory system and...
-
Consider the parabola y = 1.5(x - 3)2 + 1 and the point P(3, 5.5) . (a) Create a polynomial expression for the distance d from point P to an arbitrary point Q on the parabola. (b) Make a plot of d...
-
The following vector is defined in MATLAB: v = [6 11 -4 5 8 1 -0.2 -7 19 5] By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your...
-
The Moment Magnitude Scale (MMS), denoted Mw, which measures the total energy released by an earthquake, is given by: Mw = 2/3log10M0 - 10.7 where M0 is the magnitude of the seismic moment in dyne-em...
-
Nina Lopez and Matt ORourke have been trying to raise capital to expand their growing chain of cupcake shops, Treasure Cup. They make a full range of traditional cupcakes, but they found immediate...
-
Wish You Wood is a toy boutique located in the main shopping strip of a resort town near Piney Lake. People who own cabins near the lake or come to visit the local state park enjoy browsing through...
-
Alyssia Franklin is a marketing manager for Or Earth Skin Care. Four years ago, when she was hired to help with promotional campaigns, she was thrilled because she loved Or Earths products. Above all...
Study smarter with the SolutionInn App