When light or any other electromagnetic wave enters from one medium to another, there is a change in its speed. Speed of a wave is given as v = frequency x wavelength. My question is, what does change, frequency, wavelength or both? If you say..... this change in speed is generally attributed to change in wavelength. then again my question is, why the medium discriminates between wavelength and frequency of the incoming wave?