summaryrefslogtreecommitdiff
path: root/2882/CH3/EX3.3/Ex3_3.sce
blob: 1d4256d252da241656ce794e63f4f459a46c9cc1 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//Tested on Windows 7 Ultimate 32-bit
//Chapter 3 Semiconductor Diodes and Miscellaneous Devices Pg no. 89
clear;
clc;

//Given Data

Rl=470;//Load resistance in ohms
r=2;//Diodes dynamic resistance in ohms
esp=50;//Input signal voltage magnitude in volts peak
esf=314/(2*%pi);//Input signal frequncy in hertz

//Solution

disp("(a)");
Ep=esp*sqrt(2);//peak voltage in volts
Ip=Ep/(Rl+r)*1000;//peak current in amperes

printf("The peak value of current = Ip=%.1f mA\n",Ip*1000);

disp("(b)");
Iavg=2*Ip/%pi;//average or d.c. value of current in in milli-amperes

printf("The average or d.c. value of current = Iav=%.2f mA\n",Iavg);

disp("(c)");
Irms=Ip/sqrt(2);//rms current in milli-amperes

printf("The rms value of current = Irms=%.2f mA\n",Irms);

disp("(d)");
RF=sqrt((Irms/Iavg)^2-1);//ripple factor

printf("The ripple factor = RF=%.4f\n",RF);

disp("(e)");
Pdc=(Iavg/1000)^2*Rl//d.c. output power in watts
Pac=(Irms/1000)^2*(Rl+r);//input ac power in watts
n=Pdc/Pac;//Rectification efficiency is output dc power over input ac power

printf("Rectification efficiency= %.2f percentage",n*100);

//Efficiency calculation error in textbook and also decimal errors due to approximations