summaryrefslogtreecommitdiff
path: root/1427/CH34/EX34.3/34_3.sce
blob: 05d4b2904d868403078e3f12ac27d73dc67a56da (plain)
1
2
3
4
5
6
7
8
//ques-34.3
//Calculating energy and frequency and wave number
clc
w=200;//wavelength (in nm)
E=(6.023*10^23*6.625*10^-34*3*10^8)/(w*10^-9);
f=(3*10^8)/(w*10^-9);
wn=1/(w*10^-9);
printf("The energy required is %.1f kJ/mol, frequency is %.1f*10^15 Hz and wave number is %d /cm.",E/1000,f*10^-15,wn/100);