Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started