Problem
In a student project for which the keys were integers, one student thought that he could mix the keys well by using a trigonometric function, which had to be converted to an integer index, so he defined his hash function as (int) sin(n). What was wrong with this choice? He then decided to replace the function sin(n) by exp(n). Criticize this choice.