Question: Background the change in the object's P E is equal to its change in K E : P E = K E . In terms
Background
the change in the
object's is equal to its change in :
In terms of relevant physical variables, this relationship is written as
where is the object's mass, is the constant acceleration due to gravity, is the object's height above some
reference point, is the object's velocity, and the subscripts and represent the initial and final states of the
object, respectively.
This classic falling object problem is often used to answer questions like, "What is the object's velocity right before
it hits the ground?" Once we have a grasp of these simple falling object problems, it is interesting to try to answer
new questions like, "What happens after the object hits the ground?" This question naturally leads to the study of
collisions. For perfectly elastic collisions, no energy is lost and the upward velocity of the ball just after it hits the
ground is exactly equal to the downward velocity of the ball just before it hits the ground. In this idealized scenario the
ball will bounce all the way back up to its initial height and continue doing so forever, clearly, the elastic collision
case does not describe real collisions.
A more realistic mathematical model for a bouncing object leads us to the study of inelastic collisions. For inelastic
collisions, the upward velocity of the object after rebounding off the ground is less than its downward velocity just
before striking the ground. The ratio of the magnitudes of these velocities is called the coefficient of restitution
Elastic collisions are described by and inelastic collisions are described by Leaving the details for
your physics class, the total distance traveled by an object initially dropped from a height is
dots
Note that, interestingly, the mass of the object and the acceleration due to gravity have no effect on this result. We
recognize the term in parenthesis as almost a geometric series. We can turn this into a geometric series by adding
and subtracting ie effectively adding to giving
dots
where represents the number of bounces the object makes off the ground. The term might seem strange at
firstdoes this somehow mean the object can possibly travel a negative distance? Test this expression for bounces
to assure yourself that this negative term out front isn't an issue. The second term in the final expression for is
clearly a geometric series with Since we know we can use the general result for the infinite sum of a
geometric series to show that the total distance traveled by the object is
Note that the total distance traveled is infinite when which is the expected result when the collision is perfectly
elastic, but converges to some finite value for any e
Your Task: Help me make a matlab code for this homework using the functions
h;
e ;
TotalDistBounceOut,z BallBouncehe
Write a function called BallBounce that takes in values for the initial height of a ball above the ground h and the coefficient of restitution between the ball and the ground e that does the following:
Finds the total distance traveled by the object in the limit that the number of bounces goes to infinity. This value should be the first output of your function.
Finds the number of bounces required for the ball to travel at least of the total distance it will travel. This value should be the second output of your function.
Define a row vector that stores the distance traveled as a function of the number of bounces. The last element of this row vector should be the distance traveledonce the condition described above is met. This vector should should be the third output of your function. You can perform a preliminary check of this variable by making sure its first element corresponds to the distance traveled for bounces.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
