summaryrefslogtreecommitdiff
path: root/3020/CH16/EX16.10/ex16_10.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3020/CH16/EX16.10/ex16_10.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 '3020/CH16/EX16.10/ex16_10.sce')
-rwxr-xr-x3020/CH16/EX16.10/ex16_10.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3020/CH16/EX16.10/ex16_10.sce b/3020/CH16/EX16.10/ex16_10.sce
new file mode 100755
index 000000000..a2c8eb441
--- /dev/null
+++ b/3020/CH16/EX16.10/ex16_10.sce
@@ -0,0 +1,19 @@
+clc;
+clear all;
+e = 1.6e-19; // Charge of an electron
+m = 9.11e-31; // Mass of an electron in Kg
+r = 1.6e-8 ; // resistivity of silver in (ohm.meter)
+at = 107.9e-3; // Atomic weight of copper in gm
+d = 10.5e3; // Density of silver in Kg per cubic meter
+N = 6.023e23; // Avagadros number
+c = 3e8 ;// Velocity of light in air
+fe= 5.5*e // Fermi energy of the silver piece
+E = 100;// Electric field
+sigma = 1/r; // Conductivity
+n = (N*d)/at;
+tr = (sigma*m)/(n*e^2);// Relaxation time
+lambda = c*tr; // Mean free path
+vd = (sigma*E)/(n*e);// Drift velocity
+disp('s',tr,'Relaxation time is')
+disp('m',lambda,'Mean free path is')
+disp('m/s',vd,'Drift velocity of electrons')