diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH4/EX4.8/Ex4_8.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1445/CH4/EX4.8/Ex4_8.sce')
-rw-r--r-- | 1445/CH4/EX4.8/Ex4_8.sce | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/1445/CH4/EX4.8/Ex4_8.sce b/1445/CH4/EX4.8/Ex4_8.sce index d298ccbd6..208eba54d 100644 --- a/1445/CH4/EX4.8/Ex4_8.sce +++ b/1445/CH4/EX4.8/Ex4_8.sce @@ -1,6 +1,7 @@ //CHAPTER 4- MEASURING INSTRUMENTS //Example 8 +clc; disp("CHAPTER 4"); disp("EXAMPLE 8"); @@ -12,10 +13,10 @@ v=30; //in Volts //SOLUTION R_sh=(I_m*r_m)/I; //I_m=I*(R_sh/(R_sh+r_m)) if R_sh<<5Ω, then I_m=I*(R_sh/r_m) neglecting R_sh in the denominator -disp(sprintf("In order to read upto 2A, a shunt of %.2f Ω has to be connected in parallel",R_sh)); +disp(sprintf("In order to read upto 2A, a shunt of %f Ω has to be connected in parallel",R_sh)); R_se=(v-(I_m*r_m))/I_m; -disp(sprintf("In order to read upto 30V, a resistance of %.2f Ω has to be connected in series",R_se)); +disp(sprintf("In order to read upto 30V, a resistance of %f Ω has to be connected in series",R_se)); //END |