summaryrefslogtreecommitdiff
path: root/1448/CH12/EX12.1.e/E12_1.sce
blob: 2701162604242a6b2322b1b6c687c39bd4a3485f (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//Initialization of variables
P=100 //W
t=10 //s
l=560 //nm
//calculations
TE=P*t
E1=6.626*10^-34 *2.998*10^8 /(l*10^-9)
N=TE/E1
//results
printf("No. of photons required = %.2e ",N)