summaryrefslogtreecommitdiff
path: root/147/CH7/EX7.15/Example7_15.sce
blob: 6dd1f4909259e3cf69db03a21c02e868913932da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
close();
clear;
clc;
//Maximum voltage of 'Vsm', angular frequency 'w' of vs, ratio of ripple voltage and average output voltage 'Fs' 
Rl = 1000; //ohm
Vsm = 90; //V
w = 2000; //rad/s
Fs = 0.05;
f = w/(2*%pi);
C = 1/(f*Rl*Fs); //F
//average value of vl 'Vlavg'
Vlavg = Vsm*(1 -1/(2*f*Rl*C)); //V
mprintf("Average value of vl = %0.2f V",Vlavg);