diff options
Diffstat (limited to '3871/CH14/EX14.7/Ex14_7.sce')
-rw-r--r-- | 3871/CH14/EX14.7/Ex14_7.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/3871/CH14/EX14.7/Ex14_7.sce b/3871/CH14/EX14.7/Ex14_7.sce new file mode 100644 index 000000000..6c5ff2899 --- /dev/null +++ b/3871/CH14/EX14.7/Ex14_7.sce @@ -0,0 +1,25 @@ +//=====================================================================================
+//Chapter 14 example 7
+clc;
+clear all;
+
+//variable declaration
+n =4; //number of full digits
+v1 = 1; //voltage in V
+v2 = 10; //voltage in V
+
+//calculations
+R = 1/(10^n); //resolution
+R1 = R*v1; //resolution on 1V range in V
+R2 = R*v2; //resolution on 10V range in V
+
+//result
+mprintf("R = %3.4f V",R);
+
+mprintf("\nthere are 5 digits in 4 (1/2) display digit display ,so 15.84 would display as 15.840");
+mprintf("\nR1 = %3.4f V",R1);
+mprintf("\nany reading upto 4 th decimal can be displayed ");
+mprintf("\nhence 0.5243 can be dislayed as 0.5243")
+mprintf("\n R2 = %3.4f V",R2);
+mprintf("\nany reading upto third decimal can be displayed ");
+mprintf("\nhence 0.5243 can be dislayed as 0.524 instead of 0.5243");
|