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.34 | |
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.34')
-rwxr-xr-x | 1523/CH2/EX2.34/2_34.sce | 17 |
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");
+
|