summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.19/example3_19.sce
blob: 80937aaa83e26f13420c8978945c0cdeeb701af7 (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
25
// Find maximum dc voltage
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 3-19 in page 162

clear; clc; close;

// Given data
Vp=220; // Peak voltage in V
f=50; // Frequency in Hz
Rl=1.5*10^3; // Load resistance in ohms
N=0.1; // Turn ratio

// Calculation
Vs=Vp*N;
Vrms=Vs*sqrt(2);
Vm=Vrms/2;
Idc=(2*Vm)/(%pi*Rl);
Vdc=Idc*Rl;
printf("Maximum dc output voltage = %0.2f V",Vdc);

// Result
// Dc output voltage = 9.9 V