diff options
Diffstat (limited to '1445/CH4/EX4.8/Ex4_8.sce')
-rw-r--r-- | 1445/CH4/EX4.8/Ex4_8.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1445/CH4/EX4.8/Ex4_8.sce b/1445/CH4/EX4.8/Ex4_8.sce new file mode 100644 index 000000000..d298ccbd6 --- /dev/null +++ b/1445/CH4/EX4.8/Ex4_8.sce @@ -0,0 +1,22 @@ +//CHAPTER 4- MEASURING INSTRUMENTS +//Example 8 + +disp("CHAPTER 4"); +disp("EXAMPLE 8"); + +//VARIABLE INITIALIZATION +I_m=15/1000; //from mA to A +r_m=5; //in Ohms +I=2; //in Amperes +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)); + +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)); + +//END + + |