summaryrefslogtreecommitdiff
path: root/3554/CH3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3554/CH3
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 '3554/CH3')
-rw-r--r--3554/CH3/EX3.1/Ex3_1.sce16
-rw-r--r--3554/CH3/EX3.2/Ex3_2.sce38
2 files changed, 54 insertions, 0 deletions
diff --git a/3554/CH3/EX3.1/Ex3_1.sce b/3554/CH3/EX3.1/Ex3_1.sce
new file mode 100644
index 000000000..2a081ccf3
--- /dev/null
+++ b/3554/CH3/EX3.1/Ex3_1.sce
@@ -0,0 +1,16 @@
+// Exa 3.1
+
+clc;
+clear all;
+
+// Given data
+
+Rm= 100; // Internal resistance in Ohm's
+Im= 1; // Full scale deflecfion current in milliAmpere
+I= 100; // Total current in milli Ampere
+
+// Solution
+
+Rsh= (Im*Rm)/(I-Im); // Shunt resistance
+printf('The value of shunt resistance = %.2f Ohm \n', Rsh);
+
diff --git a/3554/CH3/EX3.2/Ex3_2.sce b/3554/CH3/EX3.2/Ex3_2.sce
new file mode 100644
index 000000000..aef9fea92
--- /dev/null
+++ b/3554/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,38 @@
+// Exa 3.2
+
+clc;
+clear all;
+
+// Given data
+
+//Refer fig. 3.4
+Rm=100;//Ohms
+Im=50; ///micro Amp
+
+// Solution
+
+//For 0-1mA range
+ // Ish*Rsh=Im*Rm;
+ disp("The four linear equations are as follows:");
+ printf(' R1+R2+R3+R4 = %.2f \n ',50*100/950); //say-equaion (3.1)
+
+ //For 0-10 mA range
+ printf('R1+R2+R3-(50/9950)*R4= % .3f \n ',100*50/9950); //say-equation(3.2)
+
+ //For 0-50 mA range
+ printf('R1+R2-(50/49950)*R3-(50/49950)*R4 = %.3f \n ',100*50/49950); //say-equation(3.3)
+
+ //For 0-100mA range
+ printf('R1-(50/99950)*R2-(50/99950)*R3-(50/99950)*R4 = %.3f \n ',50*100/99950);//say-equation(3.4)
+
+ //converting it into matrix form
+ A=[1 1 1 1;1 1 1 -(50/9950);1 1 -(50/49950) -(50/49950);1 (-50/99950) (-50/99950) (-50/99950)];
+
+ B=[-50*100/950 ; -100*50/9950 ; -100*50/49950 ; -50*100/99950];
+
+ [R,y]=linsolve(A,B);A*R+B;//linear equaion solving function
+
+ disp("The value of R1,R2 R4 and R4 are given as follows-");
+ printf(' R1 = %.5f Ohms \n R2= %.5f Ohms \n R3= %.5f Ohms \n R4= %.5f Ohms \n ',R(1),R(2),R(3),R(4));
+
+ // The value of R3 vary due to round off errors