summaryrefslogtreecommitdiff
path: root/3504/CH2/EX2.5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3504/CH2/EX2.5
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 '3504/CH2/EX2.5')
-rw-r--r--3504/CH2/EX2.5/Ex2_5.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3504/CH2/EX2.5/Ex2_5.sce b/3504/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..ddbbfbb30
--- /dev/null
+++ b/3504/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,25 @@
+//To determine the current in each loop of the circuit.
+clc;
+M=[5.11 -0.71 0 -3.25;-0.71 1.86 -0.92 -0.23;0 -0.92 2.86 -1.12;-3.25 -0.23 -1.12 5.55]
+D=det(M)
+M_1=[1.5 -0.71 0 -3.25;-1.3 1.86 -0.92 -0.23;-7.1 -0.92 2.86 -1.12;-2.1 -0.23 -1.12 5.55]
+D_1=det(M_1)
+M_2=[5.11 1.5 0 -3.25;-0.71 -1.3 -0.92 -0.23;0 -7.1 2.86 -1.12;-3.25 -2.1 -1.12 5.55]
+D_2=det(M_2)
+M_3=[5.11 -0.71 1.5 -3.25;-0.71 1.86 -1.3 -0.23;0 -0.92 -7.1 -1.12;-3.25 -0.23 -2.1 5.55]
+D_3=det(M_3)
+M_4=[5.11 -0.71 0 1.5;-0.71 1.86 -0.92 -1.3;0 -0.92 2.86 -7.1;-3.25 -0.23 -1.12 -2.1]
+D_4=det(M_4)
+i_1=D_1/D
+i_2=D_2/D
+i_3=D_3/D
+i_4=D_4/D
+//Loop currents in Ampere using Cramer's rule,Negative sign indicates that the current is in the reverse direction.
+
+
+
+
+
+
+
+