summaryrefslogtreecommitdiff
path: root/3754/CH27/EX27.16/27_16.sce
blob: 379da2247ca25357ea9c41ecfc14a3ddda59395b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables 

no = 0.6                  //efficiency 
Pcdc = 2.5                //Maximum collector dissipation of each transistor (in watt)

//Calculation

PT = 2 * Pcdc            //Total power dissipation of two transistors (in watt)
Pindc = PT / (1 - no )   //dc input power (in watt)
Poac = no * Pindc        //ac output power (in watt)     

//Result

printf("\n The d.c. input power is  %0.3f  W.\nThe a.c. output power is  %0.3f  W.",Pindc,Poac)