From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2345/CH15/EX15.15/Ex15_15.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2345/CH15/EX15.15/Ex15_15.sce (limited to '2345/CH15/EX15.15') diff --git a/2345/CH15/EX15.15/Ex15_15.sce b/2345/CH15/EX15.15/Ex15_15.sce new file mode 100755 index 000000000..ae0c135a8 --- /dev/null +++ b/2345/CH15/EX15.15/Ex15_15.sce @@ -0,0 +1,11 @@ +//Finding resistance +//Example 15.15(pg. 401) +clc +clear +lab=10//la=10*lb ratio of length of A to length of B. +Aab=1/2//Aa=1/2*Ab ratio of area of A to area of B +RHOab=1/2//RHOa=2*RHOb ratio of resistivity of A to resistivity of B +Ra=2//resistance of A in ohm +Rb=(Ra*Aab)/(lab*RHOab)//resistance of B in ohm +//Since Ra=RHOa*la/Aa and Rb=RHOb*lb/Ab so from ratio of two we get Rb +printf('Thus resistance of resistor B is %2.2f ohm',Rb) -- cgit