Chapter6-Power Supplies¶

Ex1-pg117¶

In [1]:
##Ex:6.1
import math
V_p=220.;
V_s=V_p/44.;
V_pk=1.414*V_s;##in volts
V_l=V_pk-0.6;
print'%s %.2f %s'%("Peak voltage that appear across load = ",V_l," V");

Peak voltage that appear across load =  6.47  V


Ex2-pg118¶

In [2]:
##Ex:6.2
import math
X_c=3.18;
R=100.;
V_rip=1.*(X_c/math.sqrt(R**2+X_c**2));
print'%s %.2f %s'%("Ripple voltage = ",V_rip," V");

Ripple voltage =  0.03  V


Ex3-pg118¶

In [3]:
##Ex:6.3
import math
f=50.;
L=10.;
X_l=2.*math.pi*f*L;
X_c=3.18;
V_rip=1.*(X_c/math.sqrt(X_l**2+X_c**2));
print'%s %.2e %s'%("Ripple voltage = ",V_rip," V");

Ripple voltage =  1.01e-03  V


Ex4-pg122¶

In [4]:
##Ex:6.4
import math
R_l=400.;
V_in=9.;
V_z=5.;
P_z_max=0.5;
R_s_max=R_l*((V_in/V_z)-1.);
R_s_min=((V_z*V_in)-V_z**2)/P_z_max;
print'%s %.2f %s'%("Suitable value of resistor = ",(R_s_max+R_s_min)/2," ohm");

Suitable value of resistor =  180.00  ohm


Ex5-pg123¶

In [5]:
##Ex:6.5
import math
dI_i=20.;
dV_o=0.5;
dV_o_reg=0.1;
dI_o=2.;
R_out=dV_o/dI_o;
Regulation=(dV_o_reg/dI_i)*100.;
print'%s %.2f %s'%(" output resis. = ",R_out," ohm");
print'%s %.2f %s'%(" \n regulation. = ",Regulation,"");

 output resis. =  0.25  ohm

regulation. =  0.50