summaryrefslogtreecommitdiff
path: root/377/CH15/EX15.2/15_2.sce
blob: 2edc942b87db40700737cb437e52ff36f0d8893f (plain)
1
2
3
4
5
6
7
8
9
10
P=10;//assumed for calculation purpose
disp("Pin=0.5*P");
printf('\n');
Pin=0.5*P;
disp("Pe=0.013*Pin");
printf('\n');
Pe=0.013*Pin;
disp("ηext=Pe/p");
n=Pe/P;
printf('\n The external power efficiency is %fpercent',n*100);