summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.17/example3_17.sce
blob: ead13b9bf5eb42c348adeb837a9a8cf5a880f182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Calculate the ripple factor
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 3-17 in page 161

clear; clc; close;

// Given data
Rl=3.15*10^3; // Load resistance in K-ohms
Rf=20; // Internal resistance in ohms
Vm=230; // Maximum voltage in volts
f=50; // Frequency in Hertz

// Calculation
Irms=0.707*(Vm/(Rl+Rf));
Idc=0.637*(Vm/(Rl+Rf));
gamma_fwr=sqrt((Irms/Idc)^2-(1));

printf("Ripple factor = %0.2f",gamma_fwr);

// Result
// Ripple factor = 0.48