summaryrefslogtreecommitdiff
path: root/3717/CH12/EX12.2/Ex12_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3717/CH12/EX12.2/Ex12_2.sce')
-rw-r--r--3717/CH12/EX12.2/Ex12_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3717/CH12/EX12.2/Ex12_2.sce b/3717/CH12/EX12.2/Ex12_2.sce
new file mode 100644
index 000000000..273517091
--- /dev/null
+++ b/3717/CH12/EX12.2/Ex12_2.sce
@@ -0,0 +1,17 @@
+// Ex12_2 Page:244 (2014)
+clc; clear;
+I = 8; // Current through the copper wire, A
+d = 18e-03; // Diameter of the copper wire, m
+V = 5; // Potential difference across the wire, V
+L = 1; // Length of the copper wire, m
+A = %pi*(d/2)^2; // Area of cross-section of the wire, Sq.m
+J = I/A; // Current density in the wire, A/Sq.m
+E = V/L; // Electric field across the wire, V/m
+rho = E/J; // Resistivity of the material, ohm-m
+printf("\nThe current density in the copper wire = %4.2e A/Sq.m", J);
+printf("\nThe resistivity of the material = %4.2e ohm-m", rho);
+
+// Result
+// The current density in the copper wire = 3.14e+04 A/Sq.m
+// The resistivity of the material = 1.59e-04 ohm-m
+// The answer provided in the textbook is wrong