summaryrefslogtreecommitdiff
path: root/3768/CH6/EX6.10/Ex6_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH6/EX6.10/Ex6_10.sce')
-rw-r--r--3768/CH6/EX6.10/Ex6_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3768/CH6/EX6.10/Ex6_10.sce b/3768/CH6/EX6.10/Ex6_10.sce
new file mode 100644
index 000000000..d17578965
--- /dev/null
+++ b/3768/CH6/EX6.10/Ex6_10.sce
@@ -0,0 +1,14 @@
+//Example number 6.10, Page number 120
+
+clc;clear;
+close;
+
+//Variable declaration
+A=10*10**-6; //area(m**2)
+i=100; //current(amp)
+n=8.5*10**28; //number of electrons
+e=1.6*10**-19; //charge(c)
+//Calculation
+vd=i/(n*A*e); //drift velocity(m/s)
+//Result
+printf("drift velocity is %.4e m/s",vd)