summaryrefslogtreecommitdiff
path: root/1427/CH19/EX19.6/19_6.sce
blob: e017c6f4c3e91de4f63c20d0c414bfdc088de5cc (plain)
1
2
3
4
5
6
7
8
//ques-19.6
//Determining number of photons of light required
clc
w=400;//wavelength (in nm)
E1=1;//energy required (in J)
E=(6.63*10^-34*3*10^8)/(w*10^-9);//energy of 1 photon (in J)
n=E1/E;
printf("The number of photons of light are %.2f*10^18.",n*10^-18);