diff options
Diffstat (limited to '2345/CH15/EX15.17')
-rwxr-xr-x | 2345/CH15/EX15.17/Ex15_17.sce | 11 |
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)
|