summaryrefslogtreecommitdiff
path: root/3651/CH6/EX6.6/6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3651/CH6/EX6.6/6.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3651/CH6/EX6.6/6.sce')
-rw-r--r--3651/CH6/EX6.6/6.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3651/CH6/EX6.6/6.sce b/3651/CH6/EX6.6/6.sce
new file mode 100644
index 000000000..d1527c2ad
--- /dev/null
+++ b/3651/CH6/EX6.6/6.sce
@@ -0,0 +1,22 @@
+//Variable declaration
+ni=1.5*10**16
+mu_n=1300*10**-4
+mu_p=500*10**-4
+e=1.6*10**-19
+sigma=3*10**4
+
+//Calculations
+//Concentration in N-type
+n1=sigma/(e*mu_n)
+p1=ni**2/n1
+//Concentration in P-type
+p=sigma/(e*mu_p)
+n2=(ni**2)/p
+
+//Result
+printf('a)Concentration in N-type\n ')
+printf('n = %0.3f *10**24 m**-3 \n',(n1*10**-24))
+printf('Hence p = %0.3f *10**8 m**-3 \n',(p1/10**8))
+printf('b)Concentration in P-type\n')
+printf('p = %0.3f *10**24 m**-3 \n',(p/10**24))
+printf('Hence n = %0.3f *10**8 m**-3 \n',(n2/10**8)) \ No newline at end of file