summaryrefslogtreecommitdiff
path: root/2594/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2594/CH2/EX2.5/Ex2_5.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 '2594/CH2/EX2.5/Ex2_5.sce')
-rwxr-xr-x2594/CH2/EX2.5/Ex2_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2594/CH2/EX2.5/Ex2_5.sce b/2594/CH2/EX2.5/Ex2_5.sce
new file mode 100755
index 000000000..358acdb1f
--- /dev/null
+++ b/2594/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,17 @@
+clc
+Eg1=1.43
+disp(" Energy gap of GaAs = "+string(Eg1)+"eV") //initializing the value of energy gap of GaAs.
+Eg2=2.43
+disp(" Energy gap of GaP = "+string(Eg2)+"eV")//initializing the value of energy gap of Gap.
+h=6.624*10^-34
+disp(" plank constant = "+string(h)+"joule")//initializing the value of plank constant.
+c=3*10^8
+disp(" light speed = "+string(c)+"m/s") //initializing the value of speed of light.
+x=(Eg2-Eg1)
+disp("Difference between the energy gap of GaAs and GaP ,x=(Eg2-Eg1))= "+string(x)+" eV")//calculation
+g=(0.5*x)
+disp("Excess energy gap added to GaAs to form GaAsP =(0.5*x))= "+string(g)+" eV ")//calculation
+Eg=(Eg1+g)
+disp("Band gap energy GaAs(0.5)P(0.5),Eg=(Eg1+g))= "+string(Eg)+" eV ")//calculation
+lamda=(c*h/(Eg*1.6*10^-19))
+disp("Wavelength of radiation emitted,w=(c*h/Eg))= "+string(lamda)+" metre ")//calculation