This is a simulator where a ball bounces and slowly goes higher each time it bounces. Here is a guide to the variables: x variable - movement in simulation and also x axis m variable - height y variable - y axis
Some version of the equation used probably already exists, but this is the graphing website where I made the main equation: https://www.desmos.com/calculator This is the equation used to make it: y = x*sqrt(m*|cos(x)|)