summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.17
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH15/EX15.17
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 '2345/CH15/EX15.17')
-rwxr-xr-x2345/CH15/EX15.17/Ex15_17.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2345/CH15/EX15.17/Ex15_17.sce b/2345/CH15/EX15.17/Ex15_17.sce
new file mode 100755
index 000000000..95d4f69d8
--- /dev/null
+++ b/2345/CH15/EX15.17/Ex15_17.sce
@@ -0,0 +1,11 @@
+//Finding resistance
+//Example 15.17(pg. 403)
+clc
+clear
+Ra=1//resistance of A in ohm
+lab=20//ratio of length of A to length of B
+Aab=1/3//ratio of area of A to area of B
+//resistivity is same for both wires
+Rb=Ra*(Aab/lab)//resistance of wire B in ohm
+//since Ra=rho*la/Aa and Rb=rho*lb/Ab so from ratio of both we get Rb
+printf('Thus resistance of wire B is %2.4f omhs',Rb)