diff options
Diffstat (limited to '3507/CH15/EX15.4/Ex15_4.sce')
-rw-r--r-- | 3507/CH15/EX15.4/Ex15_4.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3507/CH15/EX15.4/Ex15_4.sce b/3507/CH15/EX15.4/Ex15_4.sce new file mode 100644 index 000000000..f5cd26059 --- /dev/null +++ b/3507/CH15/EX15.4/Ex15_4.sce @@ -0,0 +1,24 @@ +//chapter15
+//example15.4
+//page325
+
+Vcc=20 // V
+Vbe=0.7 // V
+Rb=1d3 // ohm
+Rc=20 // ohm
+gain=25
+
+Ib=(Vcc-Vbe)/Rb
+Ic=Ib*gain
+Vce=Vcc-Ic*Rc
+
+ib_peak=10d-3
+ic_peak=gain*ib_peak
+Po_ac=ic_peak^2*Rc/2
+P_dc=Vcc*Ic
+eta=(Po_ac/P_dc)*100
+
+printf("operating point = %.3f V and %.3f mA \n",Vce,Ic*1000)
+printf("output power = %.3f W \n",Po_ac)
+printf("input power = %.3f W \n",P_dc)
+printf("collector efficiency = %.3f percent \n",eta)
|