diff options
Diffstat (limited to '3411/CH6/EX6.7.u1/Ex6_7_u1.sce')
-rw-r--r-- | 3411/CH6/EX6.7.u1/Ex6_7_u1.sce | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/3411/CH6/EX6.7.u1/Ex6_7_u1.sce b/3411/CH6/EX6.7.u1/Ex6_7_u1.sce index a6232e7df..9ae0802d7 100644 --- a/3411/CH6/EX6.7.u1/Ex6_7_u1.sce +++ b/3411/CH6/EX6.7.u1/Ex6_7_u1.sce @@ -2,10 +2,11 @@ clc();
clear;
//To calculate the no of photons emitted by the ruby laser
-p=1 //units in W
-lamda=694.3*10^-9
-h=6.63*10^-34
-c=3*10^8
+p=1 //units in Watts
+lamda=694.3 //units in nm
+lamda=lamda*10^-9 //units in meters
+h=6.63*10^-34 //units in m^2 kg s^-1
+c=3*10^8 //units in meter/sec
n=(p*lamda)/(h*c)
printf("The no of photons emitted by the ruby laser is n=")
disp(n)
|