summaryrefslogtreecommitdiff
path: root/135/CH1/EX1.2/EX2.sce
diff options
context:
space:
mode:
Diffstat (limited to '135/CH1/EX1.2/EX2.sce')
-rwxr-xr-x135/CH1/EX1.2/EX2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/135/CH1/EX1.2/EX2.sce b/135/CH1/EX1.2/EX2.sce
new file mode 100755
index 000000000..720ec27ae
--- /dev/null
+++ b/135/CH1/EX1.2/EX2.sce
@@ -0,0 +1,10 @@
+// Example 1.2: Electric field intensity, Voltage
+clc, clear
+l=3e-3; // Length of the bar in metres
+a=50*10*1e-12; // Cross-sectional area in metres square
+I=2e-6; // Current in amperes
+rho=2.3e3; // Resistivity in ohm metres
+E=I*rho/a; // Electric field intensity in volt per metres
+V=E*l; // Voltage across the bar in volt
+disp(E,"Electic field intensity (V/m) = ");
+disp(V,"Voltage across the bar (V) = "); \ No newline at end of file