summaryrefslogtreecommitdiff
path: root/1223/CH15/EX15.13/Ex15_13.sce
blob: 207a5f139e334d6fcae217e6812a1ee57c4e7a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear;
clc;
//Example 15.13
Rl=10;//load resistance 
Pl=20;//power delivered to the load
Ps=20;//(W)
Vp=sqrt(2*Rl*Pl);
printf('\npeak output voltage=%.2f V\n',Vp)
Ip=Vp/Rl;
printf('\npeak load current =%.2fA\n',Ip)
Vs=%pi*Rl*Ps/Vp;
printf('\nrequired supply voltage=%.2f V\n',Vs)