summaryrefslogtreecommitdiff
path: root/3740/CH5/EX5.6/Ex5_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3740/CH5/EX5.6/Ex5_6.sce')
-rw-r--r--3740/CH5/EX5.6/Ex5_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3740/CH5/EX5.6/Ex5_6.sce b/3740/CH5/EX5.6/Ex5_6.sce
new file mode 100644
index 000000000..0e1323d84
--- /dev/null
+++ b/3740/CH5/EX5.6/Ex5_6.sce
@@ -0,0 +1,14 @@
+//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
+//Example 5.6
+//OS=Windows XP sp3
+//Scilab version 5.5.2
+clc;
+clear;
+
+//given
+W=5e-3;//Optical output power of laser in W
+V=2500;//Operating voltage in V
+I=10e-3;//Operating current in A
+
+eta=W/(V*I);//Overall power efficiency
+mprintf("\n Power efficiency = %.2f percent",eta*100);//Multiplying by 100 to convert in percentage