summaryrefslogtreecommitdiff
path: root/1445/CH4/EX4.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH4/EX4.4
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-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.4')
-rw-r--r--1445/CH4/EX4.4/Ex4_4.sce5
1 files changed, 3 insertions, 2 deletions
diff --git a/1445/CH4/EX4.4/Ex4_4.sce b/1445/CH4/EX4.4/Ex4_4.sce
index 67b16af41..179ac1fea 100644
--- a/1445/CH4/EX4.4/Ex4_4.sce
+++ b/1445/CH4/EX4.4/Ex4_4.sce
@@ -1,6 +1,7 @@
//CHAPTER 4- MEASURING INSTRUMENTS
//Example 4
+clc;
disp("CHAPTER 4");
disp("EXAMPLE 4");
@@ -15,12 +16,12 @@ V=500; //in Volts
//solution (a)
R_sh=r_A/((I/I_A)-1); //(I/I_A) is the multiplying factor of the shunt
-disp(sprintf("The required shunt resistance is %.2f Ω",R_sh));
+disp(sprintf("The required shunt resistance is %f Ω",R_sh));
//solutuion (b)
r=V/I_A; //total resistance required
R_se=r-r_A;
-disp(sprintf("The required resistance to be added in series is %.3f Ω",R_se));
+disp(sprintf("The required resistance to be added in series is %f Ω",R_se));
//END