summaryrefslogtreecommitdiff
path: root/2258/CH2/EX2.16/2_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '2258/CH2/EX2.16/2_16.sce')
-rwxr-xr-x2258/CH2/EX2.16/2_16.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2258/CH2/EX2.16/2_16.sce b/2258/CH2/EX2.16/2_16.sce
new file mode 100755
index 000000000..da59c6275
--- /dev/null
+++ b/2258/CH2/EX2.16/2_16.sce
@@ -0,0 +1,12 @@
+clc();
+clear;
+// To calculate the drift velocity of free electrons
+A=10; //area of cross section in mm^2
+A=A*10^-6; //area of cross section in m^2
+i=100; //current in amp
+n=8.5*10^28; //number of electrons per mm^3
+e=1.6*10^-19; //electron charge in coulumb
+vd=1/(n*A*e);
+printf("drift velocity is %f m/s",vd);
+
+//answer given in the book is wrong