summaryrefslogtreecommitdiff
path: root/1523/CH2/EX2.32
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH2/EX2.32
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1523/CH2/EX2.32')
-rwxr-xr-x1523/CH2/EX2.32/2_32.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1523/CH2/EX2.32/2_32.sce b/1523/CH2/EX2.32/2_32.sce
new file mode 100755
index 000000000..62499af14
--- /dev/null
+++ b/1523/CH2/EX2.32/2_32.sce
@@ -0,0 +1,18 @@
+//Network Theorem 1
+//page no-2.35
+//example2.35
+disp("Applying KCL to node 1:");
+disp("V1 = 50");....//equation 1
+disp("Applying KCL to node 2:");
+disp("-2*V1+17*V2 = 50");...//equation 2
+disp("Solving equations 1 and 2");...//solving equations in matrix form
+A=[1 0;-2 17];
+B=[50 50]'
+X=inv(A)*B;
+disp(X);
+disp("V1= 50 V");
+disp("V2= 8.82 V");
+x=8.82;
+y=(x/10);
+printf("\ncurrent in the 10-Ohm resistor =V2/10 =%.2f A",y);
+