calzoneman/Golfram-Alpha — comment on commit 9c59458a7fa1592c25cc15ea27c5d61d1274c633
File:  line 0
By calzoneman:

I had been calculating the movement first and finding the friction at the end of the frame to ensure that the ball doesn't move to a new tile with a different friction but still use the old friction value