diff options
Diffstat (limited to '3754/CH3/EX3.8/3_8.sce')
-rw-r--r-- | 3754/CH3/EX3.8/3_8.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3754/CH3/EX3.8/3_8.sce b/3754/CH3/EX3.8/3_8.sce new file mode 100644 index 000000000..061bad0e0 --- /dev/null +++ b/3754/CH3/EX3.8/3_8.sce @@ -0,0 +1,17 @@ +clear//
+
+//Variables
+
+l = 120 //length of wire (in meter)
+d = 0.25 * 10**-2 //Diameter of cross section (in meter)
+p = 1.7 * 10**-8 //Resistivity (in ohm-meter)
+
+//Calculation
+
+r = d/2 //Radius of cross section (in meter)
+A = %pi *r*r //Area of cross section (in metersquare)
+R = p*l/A //Resistance (in ohm)
+
+//Result
+
+printf("\n Resistance of the wire is %0.3f ohm.",R)
|