From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 887/CH2/EX2.5/2_5.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 887/CH2/EX2.5/2_5.sce (limited to '887/CH2/EX2.5') 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') -- cgit