summaryrefslogtreecommitdiff
path: root/1445/CH4/EX4.8
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1445/CH4/EX4.8
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1445/CH4/EX4.8')
-rw-r--r--1445/CH4/EX4.8/ch4_ex_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1445/CH4/EX4.8/ch4_ex_8.sce b/1445/CH4/EX4.8/ch4_ex_8.sce
new file mode 100644
index 000000000..e5c95a2d3
--- /dev/null
+++ b/1445/CH4/EX4.8/ch4_ex_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 %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 %f Ω has to be connected in series",R_se));
+
+//END
+
+