summaryrefslogtreecommitdiff
path: root/3753/CH4/EX4.5/Ex4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3753/CH4/EX4.5/Ex4_5.sce')
-rw-r--r--3753/CH4/EX4.5/Ex4_5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3753/CH4/EX4.5/Ex4_5.sce b/3753/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..b9833acdf
--- /dev/null
+++ b/3753/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,12 @@
+//Example 4.5, Page number 4.33
+
+clc;clear;close
+
+// variable declaration
+W=1.55 // wavelength
+
+// Calculations
+E_g=(1.24)/W // Bandgap in eV
+
+// Result
+printf("Band gap = %0.1f eV",E_g)