summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH17/EX17.2/ex17_2.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/215/CH17/EX17.2/ex17_2.sce')
-rwxr-xr-xWorking_Examples/215/CH17/EX17.2/ex17_2.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/Working_Examples/215/CH17/EX17.2/ex17_2.sce b/Working_Examples/215/CH17/EX17.2/ex17_2.sce
new file mode 100755
index 0000000..9f7c012
--- /dev/null
+++ b/Working_Examples/215/CH17/EX17.2/ex17_2.sce
@@ -0,0 +1,20 @@
+//Example 17.2
+clc
+//From figure 17.5
+disp('The mesh equations are')
+disp('V1=10*I1-10*I2')
+disp('0=-10*I1+17*I2-2*I3-5*I4')
+disp('0=-2*I2+7*I3-I4')
+disp('0=-0.5*I3+1.5*I4')
+//We need to find input impedance
+disp('Zin=delz/del11')
+//In matrix form
+A=[10 -10 0 0 ;-10 17 -2 -5; 0 -2 7 -1;0 0 -0.5 1.5]
+delz=det(A)
+printf("\n delz=%f ohm^3",delz);
+//Eliminating first row and first column to find del11
+B=[17 -2 -5;-2 7 -1;0 -0.5 1.5]
+del11=det(B)
+printf("\n del11=%f ohm^2",del11);
+Zin=delz/del11
+printf("\n Zin=%f ohm",Zin);