summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.34
diff options
context:
space:
mode:
Diffstat (limited to '1523/CH2/EX2.34')
-rwxr-xr-x1523/CH2/EX2.34/2_34.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1523/CH2/EX2.34/2_34.sce b/1523/CH2/EX2.34/2_34.sce
new file mode 100755
index 000000000..ea96d7828
--- /dev/null
+++ b/1523/CH2/EX2.34/2_34.sce
@@ -0,0 +1,17 @@
+//Network Theorem 1
+//page no-2.37
+//example2.334
+disp("At node A:");
+disp("VA = 60");....//equation 1
+disp("Applying KCL to node B:");
+disp("-VA+3*VB-VC = 12");...//equation 2
+disp("Applying KCL to node C:");
+disp("-2*VA-5*VB+10*VC");...//equation 3
+disp("Solving equations 1,2 and 3");...//solving equations in matrix
+A=[1 0 0;-1 3 -1;-2 -5 10];
+B=[60 12 24]'
+X=inv(A)*B;
+disp(X);
+disp("VC= 31.68 V");
+disp("Voltage across the 100 Ohm resistor = 31.68 V");
+