summaryrefslogtreecommitdiff
path: root/1952/CH4/EX4.2/Ex4_2.sce
blob: bc5baada5f574231026df8cfeb12f3e98f161499 (plain)
1
2
3
4
5
6
7
8
// chapter 4 , Example 4.2 , pg 117
E1=10^4 //energy emitted per second(in J)
n=900*10^3  //frequency(in Hz)
h=6.625*10^-34 //plancks constant(in J s)
E=h*n//energy carried by 1 photon(in J)
N=E1/E//number of photons emitted per second
printf("number of photons emitted per second\n")
disp(N)