summaryrefslogtreecommitdiff
path: root/887/CH2/EX2.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /887/CH2/EX2.5
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 '887/CH2/EX2.5')
-rwxr-xr-x887/CH2/EX2.5/2_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/887/CH2/EX2.5/2_5.sce b/887/CH2/EX2.5/2_5.sce
new file mode 100755
index 000000000..f4c104262
--- /dev/null
+++ b/887/CH2/EX2.5/2_5.sce
@@ -0,0 +1,17 @@
+clc
+//ex2.5
+i_s=15; //source current
+R_1=10;
+R_2=30;
+R_3=60;
+R_eq=1/((1/R_2)+(1/R_3)); //R_2 and R_3 in parallel
+i_1=R_eq*i_s/(R_1+R_eq); //current through R_1(current-division principle)
+disp(i_1,'current through R1 in amperes from resistance method')
+//we can also do the above calculations using conductances as shown below.
+//Conductances of respective resistances
+G_1=1/R_1;
+G_2=1/R_2;
+G_3=1/R_3;
+i_1=G_1*i_s/(G_1+G_2+G_3);
+disp(i_1,'current through R1 in amperes from conductance method')
+disp('We get the same alue in both methods')