Planck relation E=hf and the electromagnetic wave