Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
part of your condition for the bounce ($bounce < 0.0) is not valid, it should be $bounce <= 0.0 in your case ;)
//from description condition 2): 0 < bounce < 1 ; When I took out your condition it would look like: 0 <= bounce < 1
But thumbs up for the logaritmic solution.