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.16/2_16.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 887/CH2/EX2.16/2_16.sce (limited to '887/CH2/EX2.16/2_16.sce') diff --git a/887/CH2/EX2.16/2_16.sce b/887/CH2/EX2.16/2_16.sce new file mode 100755 index 000000000..b3e778b19 --- /dev/null +++ b/887/CH2/EX2.16/2_16.sce @@ -0,0 +1,15 @@ +clc +//ex2.16 +V_s=15; //source voltage +R_1=100; +R_2=50; +//Analysis with an open circuit to find V_t +i_1=V_s/(R_1+R_2); //closed circuit with R_1 and R_2 in series +V_oc=R_2*i_1; //open-circuit voltage across R_2 +V_t=V_oc; //thevenin voltage +//Analysis with a short-circuit to find i_sc +i_sc=V_s/R_1; //R_2 is short-circuited +R_t=V_oc/i_sc; //thevenin resistance +printf(" All the values in the textbook are approximated, hence the values in this code differ from those of textbook") +disp(V_t,'Thevenin voltage for given circuit in volts') +disp(R_t,'Thevenin voltage for given circuit in ohms') -- cgit