summaryrefslogtreecommitdiff
path: root/1316/CH1/EX1.8
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1316/CH1/EX1.8
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1316/CH1/EX1.8')
-rw-r--r--1316/CH1/EX1.8/example1_8.sce27
-rw-r--r--1316/CH1/EX1.8/resultexample1_8.txt7
2 files changed, 34 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);
+
+
+
+
+
diff --git a/1316/CH1/EX1.8/resultexample1_8.txt b/1316/CH1/EX1.8/resultexample1_8.txt
new file mode 100644
index 000000000..00e5c3232
--- /dev/null
+++ b/1316/CH1/EX1.8/resultexample1_8.txt
@@ -0,0 +1,7 @@
+ error for accuracy of 0.5 percent of full scale value is = 1.25 degree celcius
+Thus the actual temperature is in range of = 53.75 degree celcius to =56.25 degree celcius
+error for accuracy of 0.75 percent of span is = 1.725 degree celcius
+Thus the actual temperature is in range of = 53.275 degree celcius to =56.725 degree celcius
+error for accuracy of 0.8 percent of reading is = 0.44 degree celcius
+Thus the actual temperature is in range of = 54.56 degree celcius to = 55.44 degree celcius
+ \ No newline at end of file