summaryrefslogtreecommitdiff
path: root/3802/CH2/EX2.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3802/CH2/EX2.2
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 '3802/CH2/EX2.2')
-rw-r--r--3802/CH2/EX2.2/Ex2_2.jpgbin0 -> 8310 bytes
-rw-r--r--3802/CH2/EX2.2/Ex2_2.sce26
2 files changed, 26 insertions, 0 deletions
diff --git a/3802/CH2/EX2.2/Ex2_2.jpg b/3802/CH2/EX2.2/Ex2_2.jpg
new file mode 100644
index 000000000..e0f8aea3d
--- /dev/null
+++ b/3802/CH2/EX2.2/Ex2_2.jpg
Binary files differ
diff --git a/3802/CH2/EX2.2/Ex2_2.sce b/3802/CH2/EX2.2/Ex2_2.sce
new file mode 100644
index 000000000..4f667e302
--- /dev/null
+++ b/3802/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,26 @@
+//Book Name:Fundamentals of Electrical Engineering
+//Author:Rajendra Prasad
+//Publisher: PHI Learning Private Limited
+//Edition:Third ,2014
+
+//Ex2_2.sce.
+
+clc;
+clear;
+a1=2;b1=1;c1=5;d1=1; //these are the coefficient values of I1,I2,I3 and source obtained from loop ABDA in the given circuit
+a2=4;b2=-5;c2=-3;d2=0; //these are the coefficient values of I1,I2,I3 and source obtained from loop ABCA in the given circuit
+a3=4;b3=1;c3=-9;d3=0; //these are the coefficient values of I1,I2,I3 and source obtained from loop BCDB in the given circuit
+
+del=det([a1 b1 c1;a2 b2 c2;a3 b3 c3]);
+del1=det([d1 b1 c1;d2 b2 c2;d3 b3 c3]);
+del2=det([a1 d1 c1;a2 d2 c2;a3 d3 c3]);
+del3=det([a1 b1 d1;a2 b2 d2;a3 b3 d3]);
+
+I1=del1/del; //Using Cramer's rule
+I2=del2/del; //Using Cramer's rule
+I3=del3/del; //Using Cramer's rule
+
+printf("\n The current values are,")
+printf("\n\t I1=%1.1f A",I1)
+printf("\n\t I2=%1.1f A",I2)
+printf("\n\t I3=%1.1f A",I3)