# How to Calculate the Bounces of a Bouncy Ball

• oobercharge
In summary, the conversation discusses the task of calculating the height of a bouncing ball using its mass, height, and gravity. The speaker acknowledges the need to consider other variables such as wind resistance and surface, but wishes to keep the equation simple. Suggestions are made to look up the coefficient of restitution and to conduct a physical experiment to gather data for the code.

#### oobercharge

Homework Statement
If I were to say M was mass, H was height, and G was gravity, what equation could I plug those variables into to get how high and how many times a ball would bounce after being dropped.
Relevant Equations
Mass, Gravity, and Height of ball being dropped
For school I'm trying to write some code to calculate the height of how high a ball would bounce given its mass, height, and the gravity of where it was dropped. I know there are more variables to consider, like wind resistance and the surface it was dropped on, but for now I'm trying to keep it simple.
"If I were to say M was mass, H was height, and G was gravity, what equation could I plug those variables into to get how high and how many times a ball would bounce after being dropped."
Sorry if any of this seems unclear, I know almost nothing about physics but I need to figure this out for my computer science class.

Without additional assumptions the ball will bounce back to its original height indefinitely.

Look up coefficient of restitution.

Why not get yourself a bouncy ball, bounce it off the floor with some kind of scale behind it and take a video. You can estimate the maximum height after each bounce and then write the code to describe the motion. It's called data fitting. As a @harusex PF user @haruspex suggested, look up coefficient of restitution.

Last edited:
kuruman said:
As a @harusex