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.18/2_18.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 887/CH2/EX2.18/2_18.sce (limited to '887/CH2/EX2.18') diff --git a/887/CH2/EX2.18/2_18.sce b/887/CH2/EX2.18/2_18.sce new file mode 100755 index 000000000..36e6d18cb --- /dev/null +++ b/887/CH2/EX2.18/2_18.sce @@ -0,0 +1,18 @@ +clc +//ex2.18 +V=10; +R_1=5; +R_2=10; +//Open-circuit anlaysis +//let V_oc be the open circuit voltage +//Current equation at node1 3(i_x)=(1/10)V_oc +//i_x=(10-V_oc)/5 ix in terms of V_oc +V_oc=2/((1/5)+(1/30)); //open-circuit voltage(from above two equations) +V_t=V_oc; //thevenin voltage +//short-circuit analysis +i_x=V/R_1; +i_sc=3*i_x; //short-circuit current +R_t=V_oc/i_sc; +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 in volts') +disp(R_t,'Thevenin resistance in ohms') -- cgit