diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1445/CH1/EX1.40/ch1_ex_40.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1445/CH1/EX1.40/ch1_ex_40.sce')
-rw-r--r-- | 1445/CH1/EX1.40/ch1_ex_40.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/1445/CH1/EX1.40/ch1_ex_40.sce b/1445/CH1/EX1.40/ch1_ex_40.sce new file mode 100644 index 000000000..09fde3e60 --- /dev/null +++ b/1445/CH1/EX1.40/ch1_ex_40.sce @@ -0,0 +1,33 @@ +//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS +//Example 40 + +disp("CHAPTER 1"); +disp("EXAMPLE 40"); + +//VARIABLE INITIALIZATION +v1=20; //in Volts +v2=10; //in Volts +r1=5; //top resistance in Ohms +r2=10; //bottom resistance in Ohms +r3=5; //in Ohms +r4=5; //in Ohms +r5=10; //in Ohms + +//SOLUTION +//(5)I1+(10)I3+(-10)I4=20............eq (1) +//(0)I1+(10)I3+(10)I4=-50............eq (2) +//(5)I1+(20)I3+(0)I4=-30.............eq (3) (eq(1) + eq(2)) +//Since the determinant of matrix A is 0, hence, the set of these equations cannot be solved by matrix method +//So, solving them directly, + +I3=-15/25; +I1=-3-(3/5); +I4=-5-(-3/5); +I=I1+3+5; +disp("The currents (in Amperes) flowing in different branches are:"); +disp(I1); +disp(I3); +disp(I4); +disp(sprintf("The total current is %f A",I)); + +//END |