Question: 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

  

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!