diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH10/EX10.2/Ex10_2.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3871/CH10/EX10.2/Ex10_2.sce')
-rw-r--r-- | 3871/CH10/EX10.2/Ex10_2.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3871/CH10/EX10.2/Ex10_2.sce b/3871/CH10/EX10.2/Ex10_2.sce new file mode 100644 index 000000000..dc0cec784 --- /dev/null +++ b/3871/CH10/EX10.2/Ex10_2.sce @@ -0,0 +1,27 @@ +//===========================================================================
+//chapter 10 example 2
+
+
+clc;clear all;
+
+//variable declaration
+RA = 2.5; //resistance of ammeter Ω
+RV = 6000; //resistance of voltmeter Ω
+V = 38.4; //voltage in V
+I = 0.4; //current in A
+
+//calculations
+Rx = sqrt(RA*RV); //value of unknown resisitance in Ω
+Rm = V/I; //measured value of unknown resistance in Ω
+Rx1 = V/(I*(1-(V/(I*RV)))); //true value of unknown resistance in Ω
+EA = (1/2)*(1/100)*1; //error on ammeter reading in A
+EV = (1/2)*(50/100); //error on voltmeter reading in V
+PEA = (EA/I)*100; //percentage error at 0.4 A reading in %
+PEV = (EV/V)*100; //percentage error at 38.4 A reading in %
+E = sqrt((PEA^2)+(PEV^2)); //error due to ammeter and voltmeter in %
+AE = (E/100)*Rx1; //absolute error due to ammeter and voltmeter in Ω
+R1 =Rx1+AE; //resistance in Ω
+R2 = Rx1-AE; //resistance in Ω
+
+//result
+mprintf("resistance is specified as %3.3f and %3.3f Ω",R1,R2);
|