diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH2/EX2.25/2_25.sce | |
download | Scilab-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.25/2_25.sce')
-rwxr-xr-x | 1523/CH2/EX2.25/2_25.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1523/CH2/EX2.25/2_25.sce b/1523/CH2/EX2.25/2_25.sce new file mode 100755 index 000000000..e460c6b42 --- /dev/null +++ b/1523/CH2/EX2.25/2_25.sce @@ -0,0 +1,15 @@ +//Network Theorem 1
+//page no-2.30
+//example2.25
+disp("Applying KCL to node 1:");
+disp("8*VA-2*VB = 50");....//equation 1
+disp("Applying KCL to node 2:");
+disp("-3*VA+9*VB = 85");...//equation 2
+disp("Solving equations 1 and 2");...//solving equations in matrix form
+A=[8 -2;-3 9];
+B=[50 85]'
+X=inv(A)*B;
+disp(X);
+disp("VA= 9.39 V");
+disp("VB= 12.58 V");
+
|