summaryrefslogtreecommitdiff
path: root/2534/CH11/EX11.1/Ex11_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2534/CH11/EX11.1/Ex11_1.sce')
-rwxr-xr-x2534/CH11/EX11.1/Ex11_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2534/CH11/EX11.1/Ex11_1.sce b/2534/CH11/EX11.1/Ex11_1.sce
new file mode 100755
index 000000000..c9031957d
--- /dev/null
+++ b/2534/CH11/EX11.1/Ex11_1.sce
@@ -0,0 +1,20 @@
+//Ex11_1
+clc
+VCC = 20//collector voltage
+RL = 12//load resistance
+disp("VCC = "+string(VCC)+"V")
+disp("RL = "+string(RL)+"ohm")
+Pi_dc = (VCC^2)/(2*RL)//input power
+disp("Pi(dc) = (VCC^2)/(2*RL) = "+string(Pi_dc)+"W")
+Po_ac = (VCC^2)/(8*RL)//output power
+disp("Po_ac = (VCC^2)/(8*RL) = "+string(Po_ac)+"W")
+eta = Po_ac/Pi_dc//efficiency
+disp("eta = Po_ac/Pi_dc = "+string(eta*100)+"%")
+
+
+// note : has modifed variables:
+// using Po_ac instead of Po(ac)
+// and Pi_dc instead of Pi(dc).
+
+// note: there is a misprinting in the above problem given in the textbook
+// author want to ask for efficiency instead of frequency.