summaryrefslogtreecommitdiff
path: root/3871/CH1/EX1.5
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH1/EX1.5')
-rw-r--r--3871/CH1/EX1.5/Ex1_5.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3871/CH1/EX1.5/Ex1_5.sce b/3871/CH1/EX1.5/Ex1_5.sce
new file mode 100644
index 000000000..37352d8b0
--- /dev/null
+++ b/3871/CH1/EX1.5/Ex1_5.sce
@@ -0,0 +1,24 @@
+//=============================================================================================
+//chapter 1 example 5
+
+clc;
+clear all;
+
+//variable declaration
+R0 = 100; //resistance in Ω
+R100 = 138.50; //resistance in Ω
+R200 = 175.83; //resistance in Ω
+T1 = 0; //Tempperature in °C
+T2 = 200; //Tempperature in °C
+T3 = 100; //Tempperature in °C
+
+//calculations
+T = ((T2-T1)/(R200-R0))*(R100-R0); //change in temperatre in °C
+D = T-T3; //deviation in °C at T3 temperature
+p = (D/(T2))*100; //per cent full scale deflection non linearity in %
+
+//result
+mprintf("per cent full scale deflection %3.4f percent",p);
+
+
+//=======================================================================================================