summaryrefslogtreecommitdiff
path: root/2075/CH7/EX7.3/pe7_3.sce
blob: c20ecd239a9abe1cfc3bc216212a862067b9f712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//example 7.3 
clc; funcprot(0);
// Initialization of Variable
Id=500;//load current
i=134;//mA
D=.42;//duty cycle
//calculation
Ip=Id+i/2;
Im=Id-i/2;
I1=((D/3)*(Ip^2+Im*Ip+Im^2))^.5;
disp(I1,"rms current in mA:")
printf('by trapezium method')
I2=D^.5*Id;
disp(I2,"rms current in mA:")
printf('by rectangle method')
printf('\n rectangle method gives good result than trapezium method')
clear()