summaryrefslogtreecommitdiff
path: root/377/CH15/EX15.2/15_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '377/CH15/EX15.2/15_2.sce')
-rw-r--r--377/CH15/EX15.2/15_2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/377/CH15/EX15.2/15_2.sce b/377/CH15/EX15.2/15_2.sce
new file mode 100644
index 000000000..2edc942b8
--- /dev/null
+++ b/377/CH15/EX15.2/15_2.sce
@@ -0,0 +1,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); \ No newline at end of file