summaryrefslogtreecommitdiff
path: root/3543/CH3/EX3.17/Ex3_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '3543/CH3/EX3.17/Ex3_17.sce')
-rw-r--r--3543/CH3/EX3.17/Ex3_17.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3543/CH3/EX3.17/Ex3_17.sce b/3543/CH3/EX3.17/Ex3_17.sce
new file mode 100644
index 000000000..48e3c6aad
--- /dev/null
+++ b/3543/CH3/EX3.17/Ex3_17.sce
@@ -0,0 +1,18 @@
+// Example 3.17
+//Computation of conversion efficiency
+// Page no 484
+
+clc;
+clear;
+
+//Given data
+i=10*10^-6; // Device current
+p=5; // Electrical power
+op=50 *10^-6; // Optical power
+ip=5*10*10^-3; // Input power
+
+//Conversion efficiency
+c=op/ip*100;
+//Display result on command window
+printf("\n Conversion efficiency (in percentage)= %0.1f ",c);
+