diff options
Diffstat (limited to '3504/CH2/EX2.6')
-rw-r--r-- | 3504/CH2/EX2.6/Ex2_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3504/CH2/EX2.6/Ex2_6.sce b/3504/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..a1f30d3b1 --- /dev/null +++ b/3504/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,12 @@ +//To find the voltage V_0 in the given circuit. +clc; +R=30 +Z=[31 -13 0 0 0 -10 0 0 0;-13 35 -9 0 -11 0 0 0 0;0 -9 31 -10 0 0 0 0 0;0 0 -10 79 -30 0 0 0 -9;0 -11 0 -30 53 -7 0 -5 0;-10 0 0 0 -7 47 -30 0 0;0 0 0 0 0 -30 41 0 0;0 0 0 0 -5 0 0 27 -2;0 0 0 -9 0 0 0 -2 29] +D=det(Z) +Z_4=[31 -13 0 -15 0 -10 0 0 0;-13 35 -9 27 -11 0 0 0 0;0 -9 31 -23 0 0 0 0 0;0 0 -10 0 -30 0 0 0 -9;0 -11 0 -20 53 -7 0 -5 0;-10 0 0 12 -7 47 -30 0 0;0 0 0 -7 0 -30 41 0 0;0 0 0 7 -5 0 0 27 -2;0 0 0 -10 0 0 0 -2 29] +D_4=det(Z_4) +i_4=D_4/D //Current(A) +V_0=R*i_4 +disp(V_0,'Required voltage(V)') +//Negative sign indicates opposite direction of current. +//Answer in the book is wrong. |