summaryrefslogtreecommitdiff
path: root/343/CH1/EX1.54/ex_54.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /343/CH1/EX1.54/ex_54.sce
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 '343/CH1/EX1.54/ex_54.sce')
-rwxr-xr-x343/CH1/EX1.54/ex_54.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/343/CH1/EX1.54/ex_54.sce b/343/CH1/EX1.54/ex_54.sce
new file mode 100755
index 000000000..60be19caf
--- /dev/null
+++ b/343/CH1/EX1.54/ex_54.sce
@@ -0,0 +1,23 @@
+R1=2; //Assigning values to parameters
+R2=10;
+R3=2;
+R4=5;
+R5=1;
+R6=4;
+I1=28;
+I2=2;
+A=[11,-5,-1;5,-17,10;1,10,-13.5]; //Applying KCL at the two nodes
+B=[280;0;20];
+V=inv(A)*B;
+I1=V(1,1)/R1;
+I2=(V(1,1)-V(2,1))/R3;
+I3=(V(1,1)-V(3,1))/R2;
+I4=(V(2,1)-V(3,1))/R5;
+I5=V(2,1)/R4;
+I6=V(3,1)/R6;
+disp("Amperes",I1,"Current I1")
+disp("Amperes",I2,"Current I2")
+disp("Amperes",I3,"Current I3")
+disp("Amperes",I4,"Current I4")
+disp("Amperes",I5,"Current I5")
+disp("Amperes",I6,"Current I6") \ No newline at end of file