summaryrefslogtreecommitdiff
path: root/1445/CH4/EX4.4/Ex4_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1445/CH4/EX4.4/Ex4_4.sce')
-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