From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH14/EX14.8/Ex14_8.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 3871/CH14/EX14.8/Ex14_8.sce (limited to '3871/CH14/EX14.8/Ex14_8.sce') diff --git a/3871/CH14/EX14.8/Ex14_8.sce b/3871/CH14/EX14.8/Ex14_8.sce new file mode 100644 index 000000000..7b67b2880 --- /dev/null +++ b/3871/CH14/EX14.8/Ex14_8.sce @@ -0,0 +1,27 @@ +//===================================================================================== +//Chapter 14 example 8 + +clc; +clear all; + +//variable declaration +n =3; //number of full digits +v1 = 10; //voltage in V +v2 = 100; //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("\nthe meter cannot distinguish the values that differ from each by less than 0.001 of full scale"); +mprintf("\nR1 = %3.4f V",R1); +mprintf("\nany decimal upto second decimal can be displayed "); +mprintf("\nhence 15.45 can be dislayed as 15.45") +mprintf("\n R2 = %3.4f V",R2); +mprintf("\nany deccimal upto one decimal can be displayed "); +mprintf("\nhence 25.65 can be dislayed as 025.6 instead of 25.65"); + -- cgit