summaryrefslogtreecommitdiff
path: root/1445/CH4/EX4.12/ch4_ex_12.sce
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.12/ch4_ex_12.sce
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.12/ch4_ex_12.sce')
-rw-r--r--1445/CH4/EX4.12/ch4_ex_12.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1445/CH4/EX4.12/ch4_ex_12.sce b/1445/CH4/EX4.12/ch4_ex_12.sce
new file mode 100644
index 000000000..4b5b1249e
--- /dev/null
+++ b/1445/CH4/EX4.12/ch4_ex_12.sce
@@ -0,0 +1,22 @@
+//CHAPTER 4- MEASURING INSTRUMENTS
+//Example 12
+
+disp("CHAPTER 4");
+disp("EXAMPLE 12");
+
+//VARIABLE INITIALIZATION
+I1=1; //full scale current in 1st ammeter in mA
+I2=10; //full scale current in 2nd ammeter in mA
+r1=100; //internal resistance of 1st ammeter in Ohms
+r2=25; //internal resistance of 2nd ammeter in Ohms
+
+//SOLUTION
+R1=r2/(r1+r2); //resistance for 1st ammeter
+R2=r1/(r1+r2); //resistance for 2nd ammeter
+I=I1/R1; //by current divider law I1=(I*r2)/(r1+r2) =>I1=I*R1 =>I=I1/R1
+A2=I*R2; //A2=reading of second ammeter
+disp(sprintf("The total current that the two ammeters can carry is %d mA",I));
+
+//END
+
+