summaryrefslogtreecommitdiff
path: root/3871/CH5/EX5.14
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH5/EX5.14
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH5/EX5.14')
-rw-r--r--3871/CH5/EX5.14/Ex5_14.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3871/CH5/EX5.14/Ex5_14.sce b/3871/CH5/EX5.14/Ex5_14.sce
new file mode 100644
index 000000000..ca30e2483
--- /dev/null
+++ b/3871/CH5/EX5.14/Ex5_14.sce
@@ -0,0 +1,27 @@
+//===========================================================================
+//chapter 5 example 14
+clc;clear all;
+
+//variable declaration
+V = 250; //voltage in V
+RA = 100; //resistance in Ω
+RB = 400; //resistance in Ω
+x = 0.005; //error in measuring voltage in
+
+
+//calculations
+I = V/(RA+RB); //current flowing through resistance in A
+VB = I*RB; //potential drop acreoss resitance in V
+//Req = RA+((r*RB)/(r+RB))
+//Ieq =V/Req = V/ RA+((r*RB)/(r+RB))
+//Ieq = (V*(r+RB))/((RA*(r+RB))+(r*RB))
+//V1 = Ieq*(r*RB)/(r+RB)
+// V1 = (V*(r+RB))*(r*RB))/((r+RB)*((RA*(r+RB))+(r*RB)))
+//V1 = (V*r*RB)/((r+RB)*((RA*(r+RB))+(r*RB)))
+//V1 = (200*r)/(80+r)
+V1 = VB*(1-x); //voltage measured with 0.5% error
+r = (V1*80)/(200-V1); //solving equations we get minimum resistance in Ω
+
+//result
+mprintf("minimum resistance = %3.2f Ω",r);
+