summaryrefslogtreecommitdiff
path: root/1061/CH8/EX8.23/Ex8_23.sce
blob: e1f2a8c8cccbdc08843579dabf20ca1c6a9c1866 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex:8.23
clc;
clear;
close;
po=2*10^-3;// optical power in watts
I=100*10^-3;// current in amp
V=2;// applied voltage in volt
pe=I*V;// electrical power in watts
n=(po/pe)*100;// conversion efficiency
printf("The conversion efficiency =%d %%", n);