summaryrefslogtreecommitdiff
path: root/3871/CH14/EX14.5/Ex14_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH14/EX14.5/Ex14_5.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH14/EX14.5/Ex14_5.sce')
-rw-r--r--3871/CH14/EX14.5/Ex14_5.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3871/CH14/EX14.5/Ex14_5.sce b/3871/CH14/EX14.5/Ex14_5.sce
new file mode 100644
index 000000000..706237a9d
--- /dev/null
+++ b/3871/CH14/EX14.5/Ex14_5.sce
@@ -0,0 +1,26 @@
+//=====================================================================================
+//Chapter 14 example 5
+clc;
+clear all;
+
+//variable declaration
+t = 5*10^6; //time reaading in ms
+t2 = 500; //time reaading in ms
+x = 0.005; //accuracy in percent of reading
+t3 = 500*10^3; //time reaading in ms
+
+//calculations
+e = ((x/100)*t)+1; //maximum likely timing error in ms
+e1 = ((x/100)*t2)+1; //maximum timing error in ms
+a = t2*10^6; //maximum accuracy mininum error will be obtained when the time is read on the us read
+e3 = ((x/100)*t3)+1; //maximum timing error in ms
+
+//result
+mprintf("maximum likely timing error when time reading is 05000000 ms = %3.2f ms",e);
+mprintf("\nmaximum timing error when time reading is 00000500 ms = %3.2f ms",e1);
+mprintf("\nmaximum error when time reading is 00500000 = %3.2f ms",e3);
+
+
+
+
+