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 --- 2498/CH3/EX3.1/ex3_1.sce | 16 ++++++++++++++++ 2498/CH3/EX3.10/ex3_10.sce | 31 +++++++++++++++++++++++++++++++ 2498/CH3/EX3.11/ex3_11.sce | 17 +++++++++++++++++ 2498/CH3/EX3.12/ex3_12.sce | 20 ++++++++++++++++++++ 2498/CH3/EX3.13/ex3_13.sce | 20 ++++++++++++++++++++ 2498/CH3/EX3.14/ex3_14.sce | 35 +++++++++++++++++++++++++++++++++++ 2498/CH3/EX3.15/ex3_15.sce | 13 +++++++++++++ 2498/CH3/EX3.16/ex3_16.sce | 17 +++++++++++++++++ 2498/CH3/EX3.17/ex3_17.sce | 21 +++++++++++++++++++++ 2498/CH3/EX3.18/ex3_18.sce | 19 +++++++++++++++++++ 2498/CH3/EX3.19/ex3_19.sce | 28 ++++++++++++++++++++++++++++ 2498/CH3/EX3.2/ex3_2.sce | 13 +++++++++++++ 2498/CH3/EX3.3/ex3_3.sce | 13 +++++++++++++ 2498/CH3/EX3.4/ex3_4.sce | 14 ++++++++++++++ 2498/CH3/EX3.5/ex3_5.sce | 24 ++++++++++++++++++++++++ 2498/CH3/EX3.6/ex3_6.sce | 21 +++++++++++++++++++++ 2498/CH3/EX3.7/ex3_7.sce | 16 ++++++++++++++++ 2498/CH3/EX3.8/ex3_8.sce | 19 +++++++++++++++++++ 2498/CH3/EX3.9/ex3_9.sce | 19 +++++++++++++++++++ 19 files changed, 376 insertions(+) create mode 100755 2498/CH3/EX3.1/ex3_1.sce create mode 100755 2498/CH3/EX3.10/ex3_10.sce create mode 100755 2498/CH3/EX3.11/ex3_11.sce create mode 100755 2498/CH3/EX3.12/ex3_12.sce create mode 100755 2498/CH3/EX3.13/ex3_13.sce create mode 100755 2498/CH3/EX3.14/ex3_14.sce create mode 100755 2498/CH3/EX3.15/ex3_15.sce create mode 100755 2498/CH3/EX3.16/ex3_16.sce create mode 100755 2498/CH3/EX3.17/ex3_17.sce create mode 100755 2498/CH3/EX3.18/ex3_18.sce create mode 100755 2498/CH3/EX3.19/ex3_19.sce create mode 100755 2498/CH3/EX3.2/ex3_2.sce create mode 100755 2498/CH3/EX3.3/ex3_3.sce create mode 100755 2498/CH3/EX3.4/ex3_4.sce create mode 100755 2498/CH3/EX3.5/ex3_5.sce create mode 100755 2498/CH3/EX3.6/ex3_6.sce create mode 100755 2498/CH3/EX3.7/ex3_7.sce create mode 100755 2498/CH3/EX3.8/ex3_8.sce create mode 100755 2498/CH3/EX3.9/ex3_9.sce (limited to '2498/CH3') diff --git a/2498/CH3/EX3.1/ex3_1.sce b/2498/CH3/EX3.1/ex3_1.sce new file mode 100755 index 000000000..45e55262e --- /dev/null +++ b/2498/CH3/EX3.1/ex3_1.sce @@ -0,0 +1,16 @@ +// Exa 3.1 +clc; +clear; +close; +format('v',6) +// Given data +I1 = 30;// in mA +I2 = 20;// in mA +delI_Z = I1-I2;// in mA +delI_Z = delI_Z * 10^-3;// in A +V1 = 5.75;// in V +V2 = 5.6;// in V +delV_Z = V1-V2;// in V +// The resistance of the device +r_Z = delV_Z/delI_Z;// in ohm +disp(r_Z,"The resistance of the device in ohm is"); diff --git a/2498/CH3/EX3.10/ex3_10.sce b/2498/CH3/EX3.10/ex3_10.sce new file mode 100755 index 000000000..833808d99 --- /dev/null +++ b/2498/CH3/EX3.10/ex3_10.sce @@ -0,0 +1,31 @@ +// Exa 3.10 +clc; +clear; +close; +format('v',6) +// Given data +R = 200;// in ohm +Vi = 20;// in V +V_Z = 10;// in V +R_L = 300;// in ohm +P_Zmax = 400;// in mW +// The value of V_L +V_L = (R_L/(R_L+R))*Vi;// in V +disp(V_L,"The value of V_L in V is"); +V_L = V_Z;// in V +// The value of I_L +I_L = V_L/R_L;// in A +I_L = I_L * 10^3;// in mA +disp(I_L,"The value of I_L in mA is"); +// The value of I_R +I_R = (Vi-V_Z)/R;// in A +I_R = I_R * 10^3;// in mA +disp(I_R,"The value of I_R in mA is"); +// The value of I_Z +I_Z = I_R-I_L;// in mA +disp(I_Z,"The value of I_Z in mA is"); +// V_L >= V_Z and V_L= R_L*Vi/(R_L+R) +// So, the minimum value of R_L +R_L= R*V_Z/(Vi-V_Z);// in ohm +disp(R_L,"The minimum value of R_L in ohm is : ") + diff --git a/2498/CH3/EX3.11/ex3_11.sce b/2498/CH3/EX3.11/ex3_11.sce new file mode 100755 index 000000000..62afc8c7c --- /dev/null +++ b/2498/CH3/EX3.11/ex3_11.sce @@ -0,0 +1,17 @@ +// Exa 3.11 +clc; +clear; +close; +format('v',6) +// Given data +I_Z = 0.2;// in A +R = 10;// in ohm +V_Z = 8 + (R*I_Z);// in V +I_Lmin = V_Z/R;// in A +I_Zmax = 0.2;//in A +Vimax = 15;// in V +// The minimum value of R +Rimin = (Vimax-V_Z)/(I_Zmax+I_Lmin);// in ohm +disp(Rimin,"The minimum value of R in ohm is"); + +// Note: The calculation in the book is not accurate, So the answer in the book is not accurate. diff --git a/2498/CH3/EX3.12/ex3_12.sce b/2498/CH3/EX3.12/ex3_12.sce new file mode 100755 index 000000000..f018b778e --- /dev/null +++ b/2498/CH3/EX3.12/ex3_12.sce @@ -0,0 +1,20 @@ +// Exa 3.12 +clc; +clear; +close; +format('v',6) +// Given data +R_L = 10;// in k ohm +R_S = 5;// in k ohm +V_S = 12;// in V +V_Z = 8;// in V +V_L = (R_L/(R_S+R_L))*V_S;// in V +//The output voltage +Vo = V_L;// in V +disp(Vo,"The output voltage in V is"); +// The voltage drop across R_S +R_S = V_S-Vo;// in V +disp(R_S,"The voltage drop across R_S in V is"); +// The current through the zener diode +I_Z = 0;// in A +disp(I_Z,"The current through the zener diode in A is"); diff --git a/2498/CH3/EX3.13/ex3_13.sce b/2498/CH3/EX3.13/ex3_13.sce new file mode 100755 index 000000000..0f0e9deef --- /dev/null +++ b/2498/CH3/EX3.13/ex3_13.sce @@ -0,0 +1,20 @@ +// Exa 3.13 +clc; +clear; +close; +format('v',5) +// Given data +R_S = 1;// in k ohm +R_L = 1.2;// in k ohm +V_Z = 10;// in V +V_S = 16;// in V +V_L = (R_L/(R_L+R_S))*V_S;// in V +//The value of I_Z +I_Z = 0;// in A +disp(I_Z,"The value of I_Z in A is"); +// The value of P_Z +P_Z = 0; +disp(P_Z,"The value of P_Z is"); +//The value of Vo +Vo = V_L;// in V +disp(Vo,"The value of Vo in V is"); diff --git a/2498/CH3/EX3.14/ex3_14.sce b/2498/CH3/EX3.14/ex3_14.sce new file mode 100755 index 000000000..c972824e8 --- /dev/null +++ b/2498/CH3/EX3.14/ex3_14.sce @@ -0,0 +1,35 @@ +// Exa 3.14 +clc; +clear; +close; +format('v',6) +// Given data +R_L = 200;// in ohm +Vin = 20;// in V +V_Z = 10;// in V +P_Zmaz = 400;// in mW +R_S = 220;// in ohm +//The value of V_L with 200 ohm +V_L =(R_L/(R_S+R_L))*Vin;// in V +disp(V_L,"The value of V_L with 200 ohm in V is"); +// The value of I_Z with 200 ohm +I_Z = 0;// in A +disp(I_Z,"The value of I_Z with 200 ohm in A is"); +// The value of I_L with 200 ohm +I_L = Vin/(R_S+R_L)*10^3;// in mA +disp(I_L,"The value of I_L with 200 ohm in mA is"); +//The value of I_R with 200 ohm +I_R = I_L;// in mA +disp(I_R,"The value of I_R with 200 ohm in mA is"); +R_L = 50;// in ohm +V_L = (R_L/(R_S+R_L))*Vin;// in V +//The value of I_L with 50 ohm +I_L = Vin/(R_S+R_L)*10^3;// in mA +disp(I_L,"The value of I_L with 50 ohm in mA is"); +// The value of I_R with 50 ohm +I_R = I_L;// in mA +disp(I_R,"The value of I_R with 50 ohm in mA is"); +// The value of I_Z with 50 ohm +I_Z = 0;// in A +disp(I_Z,"The value of I_Z with 50 ohm in A is"); +disp(V_L,"The value of V_L with 50 ohm in V is"); diff --git a/2498/CH3/EX3.15/ex3_15.sce b/2498/CH3/EX3.15/ex3_15.sce new file mode 100755 index 000000000..f7aef5651 --- /dev/null +++ b/2498/CH3/EX3.15/ex3_15.sce @@ -0,0 +1,13 @@ +// Exa 3.15 +clc; +clear; +close; +format('v',6) +// Given data +V_Z = 15;// in V +Vin = 24;// in V +R = 27;// in ohm +I = (Vin-V_Z)/R;// in A +// The minimum value of R_L +R_Lmin = V_Z/I;// in ohm +disp(R_Lmin,"The minimum value of R_L in ohm is"); diff --git a/2498/CH3/EX3.16/ex3_16.sce b/2498/CH3/EX3.16/ex3_16.sce new file mode 100755 index 000000000..9b228c27c --- /dev/null +++ b/2498/CH3/EX3.16/ex3_16.sce @@ -0,0 +1,17 @@ +// Exa 3.16 +clc; +clear; +close; +format('v',6) +// Given data +R = 50;// in ohm +Vin = 10;// in V +V_Z = 6;// in V +I = (Vin-V_Z)/R;// in A +I = I * 10^3;// in mA +I_Zmin = 5;// in mA +// I = I_Z+I_L; +I_Rmax = I-I_Zmin;// in mA +// The minimum value of R +R = V_Z/(I_Rmax*10^-3);// in ohm +disp(R,"The minimum value of R in ohm is"); diff --git a/2498/CH3/EX3.17/ex3_17.sce b/2498/CH3/EX3.17/ex3_17.sce new file mode 100755 index 000000000..c8790bc71 --- /dev/null +++ b/2498/CH3/EX3.17/ex3_17.sce @@ -0,0 +1,21 @@ +// Exa 3.17 +clc; +clear; +close; +format('v',6) +// Given data +R = 150*10^3;// in ohm +R_L = 75;// in k ohm +R_L = R_L * 10^3;// in ohm +V_Z = 15;// in V +Vin = 50;// in V +R_Z = 0; +Rth = (R*R_L)/(R+R_L);// in ohm +Vth = Vin * ( R_L/(R_L+R) );// in V +I_Z = Vth/Rth;// in A +// The power dissipation in the zener diode +P_Z = V_Z*I_Z;// in W +P_Z= P_Z*10^3;//in mW +disp(P_Z,"The power dissipation in the zener diode in mW is"); + +// Note: The calculation in the last line is wrong as 15*0.333 = 5 mW not 0.5mW, So the answer in the book is wrong. diff --git a/2498/CH3/EX3.18/ex3_18.sce b/2498/CH3/EX3.18/ex3_18.sce new file mode 100755 index 000000000..b290783c2 --- /dev/null +++ b/2498/CH3/EX3.18/ex3_18.sce @@ -0,0 +1,19 @@ +// Exa 3.18 +clc; +clear; +close; +format('v',4) +// Given data +R = 222;// in ohm +Vin = 20;// in V +V_Z = 10;// in V +P = 400;// in mW +P= P*10^-3;// in W +I_Zmax = P/V_Z;// in A +//I = I_Z+I_L; +I = (Vin-V_Z)/R;// in A +I_Lmin = I - I_Zmax;// in mA +// The value of R_L +R_L =V_Z/I_Lmin;// in ohm +R_L= R_L*10^-3;// in k ohm +disp(R_L,"The value of R_L in k ohm is"); diff --git a/2498/CH3/EX3.19/ex3_19.sce b/2498/CH3/EX3.19/ex3_19.sce new file mode 100755 index 000000000..415e8d70f --- /dev/null +++ b/2498/CH3/EX3.19/ex3_19.sce @@ -0,0 +1,28 @@ +// Exa 3.19 +clc; +clear; +close; +format('v',6) +// Given data +R = 12;// in k ohm +Vin = 6.3;// in V +V_Z = 4.8;// in V +I = (Vin-V_Z)/R*10^3;// in mA +I_Z = 5;// in mA +// Maximum value of load current, +I_Lmax = I - I_Z;// in mA +I_Z = 100;// in mA +// Minimum value of load current, +I_Lmin = I - I_Z;// in mA +disp("The range of possible load current is : "+string(I_Lmin)+" mA <= I_L <= "+string(I_Lmax)+" mA") +// Minimum value of load resistance, +R_Lmin= I_Lmin*10^-3*V_Z;// in ohm +// Maximum value of load resistance, +R_Lmax= I_Lmax*10^-3*V_Z;// in ohm +disp("The range of possible load resistance is : "+string(R_Lmin)+" ohm <= R_L <= "+string(R_Lmax)+" ohm") +// The power rating required for load resistance +P_Zmax = I_Lmax*10^-3*V_Z;// in W +P_Zmax= P_Zmax*10^3;// in mW +disp(P_Zmax,"The power rating required for load resistance in mW is"); + +// Note: The calculated value of P_Zmax is wrong as 120*10^-3*4.8= 576 mW not 5.76 mW diff --git a/2498/CH3/EX3.2/ex3_2.sce b/2498/CH3/EX3.2/ex3_2.sce new file mode 100755 index 000000000..0d5ec8e28 --- /dev/null +++ b/2498/CH3/EX3.2/ex3_2.sce @@ -0,0 +1,13 @@ +// Exa 3.2 +clc; +clear; +close; +format('v',6) +// Given data +V_Z = 4.7;// in V +r_Z = 15;// in ohm +I_Z = 20;// in mA +I_Z = I_Z * 10^-3;// in A +// The terminal voltage +VdasZ = V_Z + (I_Z*r_Z);// in V +disp(VdasZ,"The terminal voltage in V is"); diff --git a/2498/CH3/EX3.3/ex3_3.sce b/2498/CH3/EX3.3/ex3_3.sce new file mode 100755 index 000000000..53cdaaf9c --- /dev/null +++ b/2498/CH3/EX3.3/ex3_3.sce @@ -0,0 +1,13 @@ +// Exa 3.3 +clc; +clear; +close; +format('v',5) +// Given data +P_ZM = 500;// in mW +P_ZM = P_ZM * 10^-3;// in W +V_Z = 6.8;// in V +// The value of I_ZM +I_ZM = P_ZM/V_Z;// in A +I_ZM = I_ZM * 10^3;// in mA +disp(I_ZM,"The value of I_ZM in mA is"); diff --git a/2498/CH3/EX3.4/ex3_4.sce b/2498/CH3/EX3.4/ex3_4.sce new file mode 100755 index 000000000..1b59f80a9 --- /dev/null +++ b/2498/CH3/EX3.4/ex3_4.sce @@ -0,0 +1,14 @@ +// Exa 3.4 +clc; +clear; +close; +format('v',8) +// Given data +P_ZM = 1500;// in mW +Deratingfactor = 3.33;// in mW +T1 = 85;// in degree C +T2 = 60;// in degree C +total = Deratingfactor*(T1-T2);// total derating factor in mW +// The maximum power dissipation +P_ZM = P_ZM - total;// in mW +disp(P_ZM,"The maximum power dissipation in mW is"); diff --git a/2498/CH3/EX3.5/ex3_5.sce b/2498/CH3/EX3.5/ex3_5.sce new file mode 100755 index 000000000..81c094609 --- /dev/null +++ b/2498/CH3/EX3.5/ex3_5.sce @@ -0,0 +1,24 @@ +// Exa 3.5 +clc; +clear; +close; +format('v',5) +// Given data +R_L = 1.2;// in k ohm +R_L = R_L * 10^3;// in ohm +Vi = 16;// in V +R = 1;// in k ohm +R = R * 10^3;// in ohm +// The value of V_L +V_L = (R_L*Vi)/(R+R_L);// in V +disp(V_L,"The value of V_L in V is"); +V_Z = 10;// in V +// The value of V_R +V_R = Vi-V_L;// in V +disp(V_R,"The value of V_R in V is"); +// The value of I_Z +I_Z = 0;// in A +disp(I_Z,"The value of I_Z in A is"); +// The value of P_Z +P_Z =V_Z*I_Z;// in W +disp(P_Z,"The value of P_Z in W is"); diff --git a/2498/CH3/EX3.6/ex3_6.sce b/2498/CH3/EX3.6/ex3_6.sce new file mode 100755 index 000000000..70de05b57 --- /dev/null +++ b/2498/CH3/EX3.6/ex3_6.sce @@ -0,0 +1,21 @@ +// Exa 3.6 +clc; +clear; +close; +format('v',6) +// Given data +R_L = 1.2;// in k ohm +R_L = R_L * 10^3;// in ohm +R = 220;// in ohm +V_Z = 20;// in V +// The minimum value of Vi +Vimin = ((R_L+R)/R_L)*V_Z;// in V +disp(Vimin,"The minimum value of Vi in V is"); +I_L = V_Z/R_L;// in A +I_ZM = 60;// in mA +I_ZM = I_ZM * 10^-3;// in A +// I_ZM = I_R-I_L; +I_Rmax = I_ZM + I_L; +// The maximum value of Vi +Vimax = (I_Rmax*R)+V_Z;// in V +disp(Vimax,"The maximum value of Vi in V is"); diff --git a/2498/CH3/EX3.7/ex3_7.sce b/2498/CH3/EX3.7/ex3_7.sce new file mode 100755 index 000000000..806ce5375 --- /dev/null +++ b/2498/CH3/EX3.7/ex3_7.sce @@ -0,0 +1,16 @@ +// Exa 3.7 +clc; +clear; +close; +format('v',5) +// Given data +R_L = 1;// in k ohm +R_L = R_L * 10^3;// in ohm +R = 270;// in ohm +V = 18;// in V +V_Z= 10;// in V +V_L = (R_L/(R_L+R))*V;// in V +if V_L > V_Z then + disp("As the value of V_L ("+string(V_L)+" V) is greater than the value of V_Z ("+string(V_Z)+" V), So") +disp("The zener diode is operating in the breakdown region."); +end diff --git a/2498/CH3/EX3.8/ex3_8.sce b/2498/CH3/EX3.8/ex3_8.sce new file mode 100755 index 000000000..0bcad0682 --- /dev/null +++ b/2498/CH3/EX3.8/ex3_8.sce @@ -0,0 +1,19 @@ +// Exa 3.8 +clc; +clear; +close; +format('v',6) +// Given data +V1 = 18;// in V +V2 = 10;// in V +R = 250;// in ohm +I_R = (V1-V2)/R;// in A +I_R = I_R * 10^3;// in mA +R_L = 1;// in k ohm +R_L = R_L * 10^3;// in ohm +I_L = V2/R_L;// in A +I_L =I_L * 10^3;// in mA +// I_R = I_L+I_Z; +// So, the value of zener current +I_Z = I_R - I_L;// in mA +disp(I_Z,"The value of zener current in mA is"); diff --git a/2498/CH3/EX3.9/ex3_9.sce b/2498/CH3/EX3.9/ex3_9.sce new file mode 100755 index 000000000..fb84b70db --- /dev/null +++ b/2498/CH3/EX3.9/ex3_9.sce @@ -0,0 +1,19 @@ +// Exa 3.9 +clc; +clear; +close; +format('v',6) +// Given data +R = 10;// in k ohm +R = R * 10^3;// in ohm +Vi = 20;// in V +V_Z = 10;// in V +I_L = 1;// in mA +I_L = I_L * 10^-3;// in A +R_L = 10;// in k ohm +R_L = R_L * 10^3;// in ohm +V_L = (R_L/(R_L+R))*Vi;// in V +// The current flowing through the resistance +I = (Vi-V_Z)/R;// in A +I= I*10^3;// in mA +disp(I,"The current flowing through the resistance in mA is"); -- cgit