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 --- 2534/CH11/EX11.1/Ex11_1.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 2534/CH11/EX11.1/Ex11_1.sce (limited to '2534/CH11/EX11.1/Ex11_1.sce') 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. -- cgit