summaryrefslogtreecommitdiff
path: root/226/CH3/EX3.18/example18_sce.sce
blob: 4c20345422f533cfc1c24d260cb4c9f72c3ddb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter 3
//example 3.18
//page 112
printf("\n")
printf("given")
Zz=7;Es=16;Vo=6.2;Il=59.5*10^-3;
es=(10*Es)/100//10% os Es
Rl=Vo/Il
disp("es*Zz||Rl/R1+Zz||Rl")
V0=es*((Zz*Rl)/(Zz+Rl))/(R1+((Zz*Rl)/(Zz+Rl)))
lineregulation=(V0*100)/Vo;
printf("line regulation voltage is %3.3fpercentage\n",lineregulation)
V0=Il*((Zz*R1)/(Zz+R1))
loadregulation=(V0*100)/Vo;
printf("loadregulation voltage is %3.3fpercentage\n",loadregulation)
Rr=((Zz*Rl)/(Zz+Rl))/(R1+(Zz*Rl)/(Zz+Rl));
printf("ripple rejection is %3.3f\n",Rr)