We know that wavelength is defined as the distance between two successive crests or troughs of a wave. The calculation of wavelength depends upon the information given.
Since, when the speed and frequency of the wave are given, the wavelength is calculated as follows:
Where is the wavelength, is the wave speed, and is the frequency.
And when the energy of a photon is given, the wavelength is calculated as follows:
where is the wavelength, is the Planck’s constant, is the speed of light, and is the energy of the photon.