diff options
Diffstat (limited to '1316/CH1/EX1.8/example1_8.sce')
-rw-r--r-- | 1316/CH1/EX1.8/example1_8.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1316/CH1/EX1.8/example1_8.sce b/1316/CH1/EX1.8/example1_8.sce new file mode 100644 index 000000000..781ec4c0a --- /dev/null +++ b/1316/CH1/EX1.8/example1_8.sce @@ -0,0 +1,27 @@ +//Chapter 1
+//Example 1.8
+//Page 27
+
+clear;
+clc;
+
+T_min=20;
+T_max=250;
+T=55;
+A1=0.5;
+A2=0.75;
+A3=0.8;
+
+
+//Calculation of Errors for each case
+printf("error for accuracy of 0.5 percent of full scale value is = %.2f degree celcius \n",(A1/100)*T_max);
+printf("Thus the actual temperature is in range of = %.2f degree celcius to =%.2f degree celcius \n",(T-(A1/100)*T_max),((A1/100)*T_max)+T);
+printf("error for accuracy of 0.75 percent of span is = %.3f degree celcius \n",(A2/100)*(T_max-T_min));
+printf("Thus the actual temperature is in range of = %.3f degree celcius to =%.3f degree celcius \n",(T-((A2/100)*(T_max-T_min))),(A2/100)*(T_max-T_min)+T);
+printf("error for accuracy of 0.8 percent of reading is = %.2f degree celcius \n",(A3/100)*(T));
+printf("Thus the actual temperature is in range of = %.2f degree celcius to = %.2f degree celcius \n",T-((A3/100)*(T)),((A3/100)*(T))+T);
+
+
+
+
+
|