summaryrefslogtreecommitdiff
path: root/3809/CH19/EX19.2/EX19_2.sce
blob: 1591db6715d559a669f2a6e9ff2a8a95ea788a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Chapter 19, Example 19.2

clc
//Initialisation
rl=5                 //resistance in ohm
vo=10                //Output Voltage
vi=15                //input voltage

//Calculation
io=vo/rl                    //current in ampere
po=vo*io                    //power delivered to load
pt=(vi-vo)*io               //power delivered to output transistor


//Results
printf("Output Power on Load Po = %d W\n",round(po))
printf("Output Power on O/P Transistor Pt = %d W",round(pt))