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.17/2_17.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 887/CH2/EX2.17/2_17.sce (limited to '887/CH2/EX2.17') diff --git a/887/CH2/EX2.17/2_17.sce b/887/CH2/EX2.17/2_17.sce new file mode 100755 index 000000000..4d021130d --- /dev/null +++ b/887/CH2/EX2.17/2_17.sce @@ -0,0 +1,18 @@ +clc +//ex2.17 +V_s=20; //source voltage +i_s=2; //source current +R_1=5; +R_2=20; +//after zeroing the sources which includes replacing voltage source with short circuit and current source with open circuit, we get R_t +R_eq=1/((1/R_1)+(1/R_2)); //R_1 and R_2 are in parallel combination +R_t=R_eq; //Thevenin resistance +//short-circuit analysis to find i_sc +i_2=0; //voltage across R_2 is 0 +i_1=V_s/R_1; +i_sc=i_1+2-i_2; //short-circuit current(KCL at junction of R_2 and I_s) +V_t=R_t*i_sc; //thevenin voltage +disp(i_sc,'short-circuit current in amperes') +disp(R_t,'thevenin resistance in ohms') +disp(V_t,'thevenin voltage in volts') +//thevenin equivalent can be made of V_t and R_t. -- cgit