//calculation of frequency of a wave clear; clc; printf("\t Example 7.2\n"); lambda=522*10^-9;//wavelength, m c=3*10^8;//speed of light in vacuum, m/s v=c/lambda;//frequency, Hz printf("\t the frequency of the wave is : %4.2f *10^14 Hz\n",v*10^-14); //End