From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH10/EX10.17/Ex10_17.sce | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 3871/CH10/EX10.17/Ex10_17.sce (limited to '3871/CH10/EX10.17') diff --git a/3871/CH10/EX10.17/Ex10_17.sce b/3871/CH10/EX10.17/Ex10_17.sce new file mode 100644 index 000000000..4c7b87bce --- /dev/null +++ b/3871/CH10/EX10.17/Ex10_17.sce @@ -0,0 +1,31 @@ +//=============================================================== +//Chapter 10 Example 17 + + +clc;clear all; + +//variable declaration +r = 0.0250; //resistance in Ω +R = 1.0125; //resistance in Ω +S = 1 //sensitivity +P1 = 10; //resistance in Ω +Q1 = 10; //resistamce in Ω +P2 = 9.95; //resistance in Ω +Q2 = 10.05; //resistamce in Ω +l = 100; + +//calculations +r1 = r/100; //resistance in Ω per scale division +x1 = P1/Q1; +x2 = P2/Q2; +//P/Q = (R+(l1*r))/(S+(l-l1)*r) +//(s*x)+((l-l1)*r) = R+(l1*r) +//(S*x)+(l*r)-(l1*r) = R+(L1*r) +//(S*x)+(l*r)-R = (l1*r)+(l1*r) +l1 = ((S*x1)+(l*r1)-R)/(r1+r1); //scale divisions +l12 = ((S*x2)+(l*r1)-R)/(r1+r1); //scale divisions + +//result +mprintf("hence the balance is obtainde at %3.0f and 75 scale divisions",l1); +mprintf("\nhence the balance is obtainde at %3.0f and 95 scale divisions",l12); + -- cgit