summaryrefslogtreecommitdiff
path: root/1523/CH1/EX1.2/1_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH1/EX1.2/1_2.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 '1523/CH1/EX1.2/1_2.sce')
-rwxr-xr-x1523/CH1/EX1.2/1_2.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1523/CH1/EX1.2/1_2.sce b/1523/CH1/EX1.2/1_2.sce
new file mode 100755
index 000000000..6b450c818
--- /dev/null
+++ b/1523/CH1/EX1.2/1_2.sce
@@ -0,0 +1,20 @@
+//Basic Circuit Concepts
+//page no-1.10
+//example1.2
+disp("from the given fig:")
+disp("I2-I3=13");
+disp("-20*I1+8*I2=0");
+disp("-12*I1-16*I3=0");
+//solving these equations in the matrix form
+A=[0 1 -1;-20 8 0;-12 0 -16]
+B=[13 0 0]'
+disp("A=")
+disp(A)
+disp("B=")
+disp(B)
+X=inv(A)*B
+disp("X=")
+disp(X)
+disp("I1 = 4Ampere")
+disp("I2 = 10Ampere")
+disp("I3 = -3Ampere") \ No newline at end of file