In the majority of elements, the index of refraction varies with the frequency of the light, called dispersion. Having this into consideration, Snell's Law can be used to forecast how a prism will disperse light right into a spectrum.[41] The discovery of the phenomenon when passing light by way of a prism is famously attributed to Isaac Newton.