[math-fun] How does this function manage to oscillate on the unit interval?