summaryrefslogtreecommitdiff
path: root/1730/CH2/EX2.1/Exa2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1730/CH2/EX2.1/Exa2_1.sce')
-rwxr-xr-x1730/CH2/EX2.1/Exa2_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1730/CH2/EX2.1/Exa2_1.sce b/1730/CH2/EX2.1/Exa2_1.sce
new file mode 100755
index 000000000..3c00348e3
--- /dev/null
+++ b/1730/CH2/EX2.1/Exa2_1.sce
@@ -0,0 +1,12 @@
+//Exa2.1
+clc;
+clear;
+close;
+//given data :
+J=2.4; //in A/mm^2
+J=2.4*10^6; //in A/m^2
+n=5*10^28; //unitless
+e=1.6*10^-19; // in coulomb
+//Formula : J=e*n*v
+v=J/(e*n);//in m/s
+disp("Drift velocity is : "+string(v)+" m/s or "+string(v*10^3)+" mm/s")