From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1316/CH1/EX1.8/example1_8.sce | 27 +++++++++++++++++++++++++++ 1316/CH1/EX1.8/resultexample1_8.txt | 7 +++++++ 2 files changed, 34 insertions(+) create mode 100644 1316/CH1/EX1.8/example1_8.sce create mode 100644 1316/CH1/EX1.8/resultexample1_8.txt (limited to '1316/CH1/EX1.8') 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 -- cgit