summaryrefslogtreecommitdiff
path: root/1658
diff options
context:
space:
mode:
Diffstat (limited to '1658')
-rwxr-xr-x1658/CH18/EX18.26/Ex18_26.sce62
-rwxr-xr-x1658/CH19/EX19.7/Ex19_7.sce50
-rwxr-xr-x1658/CH19/EX19.8/Ex19_8.sce61
3 files changed, 86 insertions, 87 deletions
diff --git a/1658/CH18/EX18.26/Ex18_26.sce b/1658/CH18/EX18.26/Ex18_26.sce
index 22a335b53..a41b39ba8 100755
--- a/1658/CH18/EX18.26/Ex18_26.sce
+++ b/1658/CH18/EX18.26/Ex18_26.sce
@@ -1,32 +1,30 @@
-clc;
-VCC=20;
-VEE=20;
-RC=5*10**3;
-RE=10*10**3;
-RB=10*10**3;
-B1=50;
-B2=100;
-VBE1=0.7;
-VBE2=0.6;
-IE1=(VEE-VBE1)/(RE+RB/B1);
-disp('mA',IE1*10**3,"IE1=");
-IC1=IE1;
-VC1=VCC-IC1*RC;
-disp('V',VC1,"VC1=");
-VE=-VBE1;
-VCE1=VC1-VE;
-disp('V',VCE1,"VCE1=");
-IE2=(VEE-VBE2)/(RE+RB/B2);
-disp('mA',IE2*10**3,"IE2=");
-IC2=IE2;
-VC2=VCC-IC2*RC;
-disp('V',VC2,"VC2=");
-VE=-VBE2;
-VCE2=VC-VE;
-disp('V',VCE2,"VCE2=");
-delIc=(IC2-IC1)/IC1;
-disp('%',delIc*100,"delIc=");
-delVCE=(VCE1-VCE2)/VCE2;
-disp('%',delVCE*100,"delVCE=");
-
-
+clc;
+VCC=20;
+VEE=20;
+RC=5*10**3;
+RE=10*10**3;
+RB=10*10**3;
+B1=50;
+B2=100;
+VBE1=0.7;
+VBE2=0.6;
+IE1=(VEE-VBE1)/(RE+RB/B1);
+disp('mA',IE1*10**3,"IE1=");
+IC1=IE1;
+VC1=VCC-IC1*RC;
+disp('V',VC1,"VC1=");
+VE=-VBE1;
+VCE1=VC1-VE;
+disp('V',VCE1,"VCE1=");
+IE2=(VEE-VBE2)/(RE+RB/B2);
+disp('mA',IE2*10**3,"IE2=");
+IC2=IE2;
+VC2=VCC-IC2*RC;
+disp('V',VC2,"VC2=");
+VE=-VBE2;
+VCE2=VC2-VE;
+disp('V',VCE2,"VCE2=");
+delIc=(IC2-IC1)/IC1;
+disp('%',delIc*100,"delIc=");
+delVCE=(VCE1-VCE2)/VCE2;
+disp('%',delVCE*100,"delVCE="); \ No newline at end of file
diff --git a/1658/CH19/EX19.7/Ex19_7.sce b/1658/CH19/EX19.7/Ex19_7.sce
index 31c2184fe..c9fc30672 100755
--- a/1658/CH19/EX19.7/Ex19_7.sce
+++ b/1658/CH19/EX19.7/Ex19_7.sce
@@ -1,25 +1,25 @@
-clc;
-//e.g 19.7
-Vcc=-18;
-Rc=4.3*10**3;
-Re=1*10**3;0
-RL=3*10**3;
-R1=39*10**3;
-R2=8.2*10**3;
-beta1=200;
-Vbe=-0.7;
-Vth=(Vcc*R2)/(R1+R2);
-disp('V',Vth*1,"Vth=");
-Rth=(R1*R2)/(R1+R2);
-disp('kohm',Rth*10**-3,"Rth=");
-Ie=(Vth-Vbe)/(Re+(Rth/beta1));
-disp('mA',Ie*10**3,"Ie=");
-re1=(30*10**-3)/(-Ie);
-disp('ohm',re1*1,"re1=");
-Ri=beta1*re;
-Ris=(Rth*Ri)/(Rth+Ri);
-disp('kohm',Ris*10**-3,"Ris=");
-re=(Rc*RL)/(Rc+RL);
-disp('Kohm',re*10**-3,"re=");
-Av=re/re1;
-disp(Av);
+clc;
+//e.g 19.7
+Vcc=-18;
+Rc=4.3*10**3;
+Re=1*10**3;0
+RL=3*10**3;
+R1=39*10**3;
+R2=8.2*10**3;
+beta1=200;
+Vbe=-0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('kohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta1));
+disp('mA',Ie*10**3,"Ie=");
+re1=(30*10**-3)/(-Ie);
+disp('ohm',re1*1,"re1=");
+re=(Rc*RL)/(Rc+RL);
+Ri=beta1*re;
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('kohm',Ris*10**-3,"Ris=");
+disp('Kohm',re*10**-3,"re=");
+Av=re/re1;
+disp(Av); \ No newline at end of file
diff --git a/1658/CH19/EX19.8/Ex19_8.sce b/1658/CH19/EX19.8/Ex19_8.sce
index 4415d52cb..ec6adb3ff 100755
--- a/1658/CH19/EX19.8/Ex19_8.sce
+++ b/1658/CH19/EX19.8/Ex19_8.sce
@@ -1,30 +1,31 @@
-clc;
-//e.g 19.8
-Vcc=20;
-Rc=5.7*10**3;
-Re=1*10**3;
-R1=100*10**3;
-R2=10*10**3;
-Rs=100;
-beta1=100;
-Vbe=0.7;
-Vth=(Vcc*R2)/(R1+R2);
-disp('V',Vth*1,"Vth=");
-Rth=(R1*R2)/(R1+R2);
-disp('Kohm',Rth*10**-3,"Rth=");
-Ie=(Vth-Vbe)/(Re+(Rth/beta1));
-disp('mA',Ie*10**3,"Ie=");
-re=25/(Ie*10**3);
-disp('ohm',re*1,"re=");
-Ri=beta1*re;
-Ris=(Rth*Ri)/(Rth+Ri);
-disp('ohm',Ris*1,"Ris=");
-rl=Rc;
-Av=rl/re;
-disp(Av);
-Vin=(Vs*Ris)/(Ris+Rs);
-disp('mV',Vin*1,"Vin=");
-V0=Av*Vin;
-disp('V',V0*10**-3,"V0=");
-Avs=(Av*Vin)/Vs;
-disp(Avs);
+clc;
+//e.g 19.8
+Vs = 200
+Vcc=20;
+Rc=5.7*10**3;
+Re=1*10**3;
+R1=100*10**3;
+R2=10*10**3;
+Rs=100;
+beta1=100;
+Vbe=0.7;
+Vth=(Vcc*R2)/(R1+R2);
+disp('V',Vth*1,"Vth=");
+Rth=(R1*R2)/(R1+R2);
+disp('Kohm',Rth*10**-3,"Rth=");
+Ie=(Vth-Vbe)/(Re+(Rth/beta1));
+disp('mA',Ie*10**3,"Ie=");
+re=25/(Ie*10**3);
+disp('ohm',re*1,"re=");
+Ri=beta1*re;
+Ris=(Rth*Ri)/(Rth+Ri);
+disp('ohm',Ris*1,"Ris=");
+rl=Rc;
+Av=rl/re;
+disp(Av);
+Vin=(Vs*Ris)/(Ris+Rs);
+disp('mV',Vin*1,"Vin=");
+V0=Av*Vin;
+disp('V',V0*10**-3,"V0=");
+Avs=(Av*Vin)/Vs;
+disp(Avs); \ No newline at end of file