summaryrefslogtreecommitdiff
path: root/3871/CH6/EX6.9/Ex6_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH6/EX6.9/Ex6_9.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH6/EX6.9/Ex6_9.sce')
-rw-r--r--3871/CH6/EX6.9/Ex6_9.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3871/CH6/EX6.9/Ex6_9.sce b/3871/CH6/EX6.9/Ex6_9.sce
new file mode 100644
index 000000000..1c7e59fa0
--- /dev/null
+++ b/3871/CH6/EX6.9/Ex6_9.sce
@@ -0,0 +1,24 @@
+//===========================================================================
+//chapter 6 example 9
+clc;clear all;
+
+//variable declaration
+Rm = 25; //instrument resistance in Ω
+V = 25*10^-3; //full-scale deflection voltage in V
+V1 = 10; //voltage to be measured in V
+t = 10;
+alphac = 0.004;
+alpham = 0.00015;
+
+//calculations
+Im = V/(Rm); //full-scale deflection in mA
+R = (V1/(Im))-Rm; //external resistance in Ω
+Rt = Rm+R;
+Rm1 = Rm*(1+(alphac*t)); //instrument resistance with 10°C rise in temperature in Ω
+R1 = R*(1+(alpham*t)); //series resistance with 10°C rise in temperature in Ω
+R2 = Rm1+R1; //total resistance in the voltmeter circuit in Ω
+V2 = V1*(Rt/(R2)); //reading of voltmeter at 10°C rise in temerature in V
+er = ((V2-V1)/(V1))*100; //percentage error in %
+
+//reult
+mprintf('percentage error = %3.2f percentage",er);