summaryrefslogtreecommitdiff
path: root/2288/CH3/EX3.21.22/ex3_21_22.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2288/CH3/EX3.21.22/ex3_21_22.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2288/CH3/EX3.21.22/ex3_21_22.sce')
-rwxr-xr-x2288/CH3/EX3.21.22/ex3_21_22.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2288/CH3/EX3.21.22/ex3_21_22.sce b/2288/CH3/EX3.21.22/ex3_21_22.sce
new file mode 100755
index 000000000..c6a433625
--- /dev/null
+++ b/2288/CH3/EX3.21.22/ex3_21_22.sce
@@ -0,0 +1,13 @@
+//Exa 3.21.22
+clc;
+clear;
+close;
+// Given data
+h = 6.64 * 10^-34;// in J-s
+e= 1.6*10^-19;// electron charge in C
+c= 3 * 10^8;// in m/s
+lembda = 0.87;// in µm
+lembda = lembda * 10^-6;// in m
+E_g = (h * c)/lembda;// in J-s
+E_g= E_g/e;// in eV
+disp(E_g,"The band gap of the material in eV is");