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/CH10/EX10.1/10_1.sce | 19 +++++++++++++++++++ 887/CH10/EX10.2/10_2.sce | 21 +++++++++++++++++++++ 887/CH10/EX10.3/10_3.sce | 16 ++++++++++++++++ 887/CH10/EX10.4/10_4.sce | 19 +++++++++++++++++++ 887/CH10/EX10.5/10_5.sce | 18 ++++++++++++++++++ 887/CH10/EX10.7/10_7.sce | 10 ++++++++++ 6 files changed, 103 insertions(+) create mode 100755 887/CH10/EX10.1/10_1.sce create mode 100755 887/CH10/EX10.2/10_2.sce create mode 100755 887/CH10/EX10.3/10_3.sce create mode 100755 887/CH10/EX10.4/10_4.sce create mode 100755 887/CH10/EX10.5/10_5.sce create mode 100755 887/CH10/EX10.7/10_7.sce (limited to '887/CH10') diff --git a/887/CH10/EX10.1/10_1.sce b/887/CH10/EX10.1/10_1.sce new file mode 100755 index 000000000..d0225e771 --- /dev/null +++ b/887/CH10/EX10.1/10_1.sce @@ -0,0 +1,19 @@ +clc +//ex10.1 +V_ss=2; +R=1*10^3; +V_D=[0:0.001:2]; +plot(V_D,10^3*(V_ss-V_D)/R) +xtitle('load line plot','voltage in volts','current in milli-amperes') //milli-10^-3 +//we use the equation V_ss=R*i_D+V_D +//at point B +i_D=V_ss/R; //as V_D=0 +//at point A +V_D=V_ss; //as i_D=0 +//now we see intersection of load line with characteristic and we get following at operating point +V_DQ=0.7; //voltage +I_DQ=1.3*10^-3; //current +//diode characteristic cannot be plotted +disp(V_DQ,'diode voltage at operating point in volts') +disp(I_DQ*10^3,'current at opeating point in milli-amperes') //milli-10^-3 + diff --git a/887/CH10/EX10.2/10_2.sce b/887/CH10/EX10.2/10_2.sce new file mode 100755 index 000000000..a47d2ee46 --- /dev/null +++ b/887/CH10/EX10.2/10_2.sce @@ -0,0 +1,21 @@ +clc +//ex10.2 +V_ss=10; +R=10*10^3; +V_D=[0:0.001:2]; +plot(V_D,10^3*(V_ss-V_D)/R) +xtitle('load line plot','voltage in volts','current in milli-amperes') //milli-10^-3 +//we use the equation V_ss=R*i_D+V_D +//at point C +i_D=V_ss/R; //as V_D=0 +//now if we take i_D=0, we get V_D=10 which plots at a point far off the page +//so we take the value on the right-hand edge of V-axis i.e.,V_D=2 +//at point D +V_D=2; +i_D=(V_ss-V_D)/R; +//from the intersection of load line with characteristic +V_DQ=0.68; +I_DQ=0.93*10^-3; +//diode characteristic cannot be plotted +disp(V_DQ,'diode voltage at operating point in volts') +disp(I_DQ*10^3,'current at opeating point in milli-amperes') //milli-10^-3 diff --git a/887/CH10/EX10.3/10_3.sce b/887/CH10/EX10.3/10_3.sce new file mode 100755 index 000000000..49a3c95f4 --- /dev/null +++ b/887/CH10/EX10.3/10_3.sce @@ -0,0 +1,16 @@ +clc +//ex10.3 +R=1*10^3; +//diode characteristic cannot be plotted +//case a)V_ss=15 +V_ss=15; +V_D=[-15:0.001:0]; +//from the intersection of load line and diode characteristic +V_o=10; +disp(V_o,'output voltage for Vss=15 in volts') +//case b)V_ss=20 +V_ss=20; +V_D=[-20:0.001:0]; +//from the intersection of load line and diode characteristic +V_o=10.5; +disp(V_o,'output voltage for Vss=20 in volts') diff --git a/887/CH10/EX10.4/10_4.sce b/887/CH10/EX10.4/10_4.sce new file mode 100755 index 000000000..2bf7453a3 --- /dev/null +++ b/887/CH10/EX10.4/10_4.sce @@ -0,0 +1,19 @@ + +clc +//ex10.4 +V_ss=24; +R=1.2*10^3; +R_L=6*10^3; +//by grouping linear elements together on left side of diode +V_T=V_ss*R_L/(R+R_L); //thevenin voltage +//zeroing sources +R_T=1/((1/R)+(1/R_L)); //thevenin resistance +//load-line equation is V_T+R_T*i_D+V_D=0 +//locating the operating point +V_D=-10; +V_L=-V_D; //load voltage +I_s=(V_ss-V_L)/R; //source current +//diode characteristic cannot be plotted +printf(" All the values in the textbook are approximated hence the values in this code differ from those of Textbook") +disp(V_L,'load voltage in volts') +disp(I_s,'source current in amperes') //milli-10^-3 diff --git a/887/CH10/EX10.5/10_5.sce b/887/CH10/EX10.5/10_5.sce new file mode 100755 index 000000000..83c419ec2 --- /dev/null +++ b/887/CH10/EX10.5/10_5.sce @@ -0,0 +1,18 @@ +clc +//ex10.5 +V_1=10; +V_2=3; +R_1=4*10^3; +R_2=6*10^3; +//1)analysis by assuming D1 off and D2 on +I_D_2=V_2/R_2; //ohm's law +//applying KVL +V_D_1=7; //contradiction to 'D1 is off' +//this assumption is not correct + +//2)analysis by assuming D1 on and D2 off +I_D_1=V_1/R_1; //ohm's law +//applying KVL +V_D_2=-V_1+V_2+I_D_1*R_1; +//we get V_D_2 which is consistent +disp('correct assumption is D2 off and D1 on') diff --git a/887/CH10/EX10.7/10_7.sce b/887/CH10/EX10.7/10_7.sce new file mode 100755 index 000000000..2d31a9612 --- /dev/null +++ b/887/CH10/EX10.7/10_7.sce @@ -0,0 +1,10 @@ +clc +//ex10.7 +V_1=3; +R_1=20; +//As given voltage source results in forward bias, we assume operating point is on line segment A +//replacing diode with the equivalent circuit +V_2=0.6; +R_2=10; +i_D=(V_1-V_2)/(R_1+R_2); //KVL around the circuit +disp(i_D*10^3,'current in the circuit in milli-amperes') //milli-10^-3 -- cgit