blob: 59b0ace9ccef315f273de11e2db772aea7307341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example number 11.2, Page number 246
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(coulomb)
c=3*10**10; //velocity of light(m/s)
h=6.6*10**-34; //plank's constant(Js)
Eg=3; //energy gap(eV)
//Calculation
lamda=h*c*10**9/(Eg*e); //wavelength of photon(nm)
//Result
printf("wavelength of photon is %.f nm",lamda)
//answer given in the book is wrong
|