diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH14/EX14.6/Ex14_6.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3871/CH14/EX14.6/Ex14_6.sce')
-rw-r--r-- | 3871/CH14/EX14.6/Ex14_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3871/CH14/EX14.6/Ex14_6.sce b/3871/CH14/EX14.6/Ex14_6.sce new file mode 100644 index 000000000..d7a3474d1 --- /dev/null +++ b/3871/CH14/EX14.6/Ex14_6.sce @@ -0,0 +1,26 @@ +//=====================================================================================
+//Chapter 14 example 6
+
+clc;
+clear all;
+
+//variable declaration
+n =3; //number of full digits
+v1 = 1; //voltage in V
+v2 = 10; //voltage in V
+v3 = 5; //voltage in V
+a = 0.5; //accuracy of reading in %
+r = 2; //reading in V
+
+//calculations
+R = 1/(10^n); //resolution
+V1 = R*v1; //for full scale range of 1V ,the resolution in V
+V2 = R*v2; //for full scale range of 10V ,the resolution in V
+v = v3*R; //the digit in least significant digit has a value of in V
+e = ((a/100)*r)+v; //total possible error on in V
+
+//result
+mprintf("for full scale range of 1V ,the resolution = %3.4f V",V1);
+mprintf("\nfor full scale range of 10V ,the resolution = %3.4f V",V2);
+mprintf("\ntotal possible error = %3.5f V",e);
+
|