summaryrefslogtreecommitdiff
path: root/3411/CH6/EX6.7.u1/Ex6_7_u1.sce
blob: a6232e7dff1fecd5afb457ac01b5010d25ff3f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 6_7_u1
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
n=(p*lamda)/(h*c)
printf("The no of photons emitted by the ruby laser is n=")
disp(n)