summaryrefslogtreecommitdiff
path: root/3840/CH5/EX5.9/Ex5_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3840/CH5/EX5.9/Ex5_9.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3840/CH5/EX5.9/Ex5_9.sce')
-rw-r--r--3840/CH5/EX5.9/Ex5_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3840/CH5/EX5.9/Ex5_9.sce b/3840/CH5/EX5.9/Ex5_9.sce
new file mode 100644
index 000000000..7fc87b777
--- /dev/null
+++ b/3840/CH5/EX5.9/Ex5_9.sce
@@ -0,0 +1,21 @@
+clear
+//
+//
+//
+
+//Variable declaration
+m=9.11*10**-31 //mass(kg)
+rho=1.54*10**-8 //resistivity(ohm m)
+e=1.602*10**-19 //charge(c)
+E=10**2 //electric field(V/m)
+n=5.8*10**28 //number of electrons
+Kb=1.381*10**-23 //boltzmann constant
+T=300 //temperature(K)
+
+//Calculation
+tow=m/(n*e**2*rho) //relaxation time(s)
+vd=e*E*tow/m //drift velocity(m/s)
+mew=vd/E //mobility(m**2/Vs)
+Vth=sqrt(3*Kb*T/m) //thermal velocity(m/s)
+
+//Result