Math and physics explain the anguish of a golf ball that zings around the rim of the hole instead of falling in.