summaryrefslogtreecommitdiff
path: root/3492/CH3/EX3.20/Ex3_20.sce
blob: c2d2c0f0217357e430da0717134133eee51bae99 (plain)
1
2
3
4
5
6
7
8
9
10
clc
//Chapter3
//Ex_20
//Given
P_out=2.5*10^-3 // in Watt
I=5*10^-3 // in Amp
V=2000 // in volts
P_in=V*I
E=(P_out/P_in)*100
disp(E,"Efficiency of the laser in % is")