summaryrefslogtreecommitdiff
path: root/2825/CH4/EX4.6/Ex4_6.sce
blob: eb99f7dd7fe80b47e37844657e89cd3e5dd4e593 (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
//Ex4_6 Pg-222
clc

Vr=0.7 //voltage drop
Vi=120 //input voltage
disp("RMS value of secondary voltage")
V_sec=Vi/5 //RMS value of secondary voltage
printf("        = %.0f V\n ",V_sec)

disp("Peak secondary voltage")
Vm=V_sec*sqrt(2) //Peak secondary voltage
printf("        = %.0f V\n ",Vm)

disp("Peak inverse voltage of diode")
Vinv=-(Vm) //Peak inverse voltage of diode
printf("        = %.0f V\n ",Vinv)

printf("\n Peak load voltage =%.0f V\n ",Vm)

disp("DC load voltage")
Vdc=Vm/%pi //DC load voltage
printf("        = %.1f V\n ",Vdc)

disp("Assuming second approximation")
disp("Vm'' = Vm - Vr ")
disp("Peak load voltage")
Vm_dash=Vm-Vr //Peak load voltage
printf("        = %.1f V\n ",Vm_dash)

disp("DC load voltage")
Vdc=Vm_dash/%pi //DC load voltage
printf("        = %.1f V\n ",Vdc)