diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /608/CH3/EX3.03 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '608/CH3/EX3.03')
-rwxr-xr-x | 608/CH3/EX3.03/3_03.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH3/EX3.03/3_03.sce b/608/CH3/EX3.03/3_03.sce new file mode 100755 index 000000000..028ba8c1f --- /dev/null +++ b/608/CH3/EX3.03/3_03.sce @@ -0,0 +1,14 @@ +//Problem 3.03: A wire of length 8 m and cross-sectional area 3 mm2 has a resistance of 0.16 ohms. If the wire is drawn out until its crosssectional area is 1 mm2, determine the resistance of the wire.
+
+//initializing the variables:
+R = 0.16; // in ohms
+A = 3; // in mm2
+L = 8; // in m
+A1 = 1; // in mm2
+
+//calculation:
+L1 = L*3
+R1 = R*A*L1/(A1*L)
+
+printf("\n\nResult\n\n")
+printf("\nResistance %.2f Ohms\n",R1)
|