summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.7/3_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH3/EX3.7/3_7.sce')
-rw-r--r--3754/CH3/EX3.7/3_7.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/3754/CH3/EX3.7/3_7.sce b/3754/CH3/EX3.7/3_7.sce
new file mode 100644
index 000000000..d0e98d961
--- /dev/null
+++ b/3754/CH3/EX3.7/3_7.sce
@@ -0,0 +1,36 @@
+clear//
+
+//Case 1:
+
+//Variables
+
+w = 0.01 //width (in meter)
+h = 0.01 //height (in meter)
+l = 0.50 //length (in meter)
+p = 3.5 * 10**-5 //Resistivity (in ohm-meter)
+
+//Calculation
+
+A = w * h //Area of cross section (in metersquare)
+R = p*l/A //Resistance (in ohm)
+
+//Result 1:
+
+printf("\n Resistance in case 1 is : %0.3f ohm.",R)
+
+//Case 2:
+
+//Variables
+
+w = 0.50 //width (in meter)
+h = 0.01 //height (in meter)
+l = 0.01 //length (in meter)
+
+//Calculation
+
+A = w * h //Area of cross section (in metersquare)
+R = p*l/A //Resistance (in ohm-meter)
+
+//Result
+
+printf("\n Resistance in case 2 is: %0.3f ohm.",R)