summaryrefslogtreecommitdiff
path: root/181/CH1/EX1.14/example1_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /181/CH1/EX1.14/example1_14.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 '181/CH1/EX1.14/example1_14.sce')
-rwxr-xr-x181/CH1/EX1.14/example1_14.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/181/CH1/EX1.14/example1_14.sce b/181/CH1/EX1.14/example1_14.sce
new file mode 100755
index 000000000..d6df320d1
--- /dev/null
+++ b/181/CH1/EX1.14/example1_14.sce
@@ -0,0 +1,22 @@
+// Calculate drift velocity in copper conductor
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 1-14 in page 47
+
+clear; clc; close;
+
+// Data given
+A=10^-5; // Cross sectional area in m^2
+I=100; // Current flowing in A
+n_0=8.5*10^28; // Free electron concentration of copper per cubic meter
+e=1.6*10^-19; // Charge on an electron in C
+
+// Calculation
+V_d=I/(n_0*A*e);
+
+printf("The drift velocity in copper is %0.3e m/s",V_d);
+
+// Result
+// Drift velocity in copper is 7.353*10^-4 m/s \ No newline at end of file