summaryrefslogtreecommitdiff
path: root/608/CH3/EX3.07/3_07.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH3/EX3.07/3_07.sce
downloadScilab-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.07/3_07.sce')
-rwxr-xr-x608/CH3/EX3.07/3_07.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH3/EX3.07/3_07.sce b/608/CH3/EX3.07/3_07.sce
new file mode 100755
index 000000000..ac0a3c3de
--- /dev/null
+++ b/608/CH3/EX3.07/3_07.sce
@@ -0,0 +1,14 @@
+//Problem 3.07: Determine the resistance of 1200 m of copper cable having a diameter of 12 mm if the resistivity of copper is 1.7E-8 ohm m.
+
+//initializing the variables:
+d = 0.012; // in m
+L = 1200; // in m
+p = 1.7E-8; // in ohm m
+pi = 3.14;
+
+//calculation:
+A = pi*d*d/4
+R = p*L/A
+
+printf("\n\nResult\n\n")
+printf("\nresistance %.3f Ohm\n",R) \ No newline at end of file