summaryrefslogtreecommitdiff
path: root/1301/CH18/EX18.9/ex18_9.sce
blob: 67c19d8a888c09312c96be43a50a256dad2bd373 (plain)
1
2
3
4
5
6
7
8
9
clc;
c=3*10^8;      //velocity in m/sec
l=2*10^-11;    //wavelength in m
f=c/l;          //calculating frequency
e=1.6*10^-19;   //in Coloumb
disp(f,"Frequency in Hz = ");    //displaying reuslt
h=6.63*10^-34;  //planck's constant in J.sec
V=(h*f)/e;         //calculating energy
disp(V,"operating Voltage in Volt = ");    //displaying reuslt