#Given
I0=141.4 #A
w=314
t=3*10**-3 #s
#Calculation
import math
f=w/(2*math.pi)
T=1/f
I=-I0*t*math.sin(314*180/3.14)
#Result
print"(i) The maximum value is",I0,"A"
print"(ii) Frequency is",round(f,0),"Hz"
print"(iii) Time period is",round(T,2),"S"
print"(iv) The instantaneous value is", round(I*10**3,2),"A"
#Given
E=220 #V
#Calculation
import math
E0=math.sqrt(2)*E
Emean=2*E0/math.pi
#Result
print"Average e.m.f during a positive half cycle is", round(Emean,0),"V"
#Given
A=2
#Calculation
import math
I=math.sqrt(A**2)
#Result
print"r.m.s Value of current is", I,"A"
#Given
I0=120 #A
a=360.0
b=96
c=120.0
#Calculation
import math
t=1/a
I=I0*math.sin(math.pi/3.0)
a1=b/c
a2=math.asin(a1)
t=a2/(c*math.pi)
#Result
print"(i) Instantaneous value after 1/360 second is",round(I,2),"A"
print"(ii) Time taken to reach 96 A for the first time is", round(t,5),"S"
#Given
E0=60
R=20.0 #ohm
#Calculation
import math
Ev=E0/(math.sqrt(2))
Iv=Ev/R
#Result
print"(i) A.C ammeter will",round(Iv,2),"A"
print"(ii) Average value of a.c over one cycle is zero"
#Given
E0=250 #V
I0=10 #A
#Calculation
P=E0*I0
P1=P/2.0
#Result
print"(i) Peak power is", P,"W"
print"(ii) Average power is",P1,"W"
#Given
Ev=120.0
P=1000 #W
Ev1=240
#Calculation
Iv=P/Ev
I0=math.sqrt(2)*Iv
R=Ev/Iv
P=Ev1**2/R
#Result
print"Resistance is", R,"ohm \nPeak current is",P,"W"
#Given
Xl=220 #ohm
L=0.7 #H
#Calculation
import math
f=Xl/(2*math.pi*L)
#Result
print"Frequency is", round(f,0),"HZ"
#Given
f=50 #Hz
I=1.4
#Calculation
import math
E=2*math.pi*f*I*2*math.cos(2*math.pi*f)
Ev=E/math.sqrt(2)
#Result
print"(i) Potential difference across the coil is", round(E,0),"cos 100*math.pi*t"
print"(ii) r.m.s value of p.d across the coil is", round(Ev,1),"V"
#Given
f=50 #Hz
L=2
Ev=12 #V
L1=6
#Calculation
import math
Xl=2*math.pi*f*L
Iv=Ev/Xl
Xl1=2*math.pi*f*L1
Iv1=Ev/Xl1
#Result
print"Current flows when the inductance is changed to 6 H", round(Iv1,4),"A"
#Given
Ev=200 #V
I0=0.9 #A
f=50 #Hz
#Calculation
import math
E0=math.sqrt(2)*Ev
Xl=E0/I0
L=Xl/(2*math.pi*f)
#Result
print"The value of inductance is", round(L,0),"H"
#Given
C=318*10**-6 #F
Ev=230 #V
f=50 #Hz
#Calculation
import math
Xc=1/(2*math.pi*f*C)
Iv=Ev/Xc
E0=math.sqrt(2)*Ev
I0=math.sqrt(2)*Iv
w=2*math.pi*f
#Result
print"(i) The capacitive reactance is",round(Xc,0),"ohm"
print"(ii) r.m.s value of circuit current is",round(Iv,0),"A"
print"(iii) Equation for voltage is",round(E0,2),"sin 314 t"
print"Equation for current is",round(I0,2),"sin (314 t+pi/2)"
#Given
L=1 #H
Xl=3142.0 #ohm
#Calculation
import math
f=Xl/(2*math.pi*L)
C=1/(2.0*math.pi*f*Xl)
#Result
print"(i) Value of frequency is", round(f,0),"ohm"
print"(ii) Capacity of a condenser is",round(C*10**6,2),"micro F"
#Given
C=50*10**-6 #F
V=230 #V
#Calculation
import math
q=C*V*math.sqrt(2)
E=0.5*C*(V*math.sqrt(2))**2
#Result
print"(i) Maximum charge on the capacitor is", round(q*10**3,2),"*10**-3 C"
print"(ii) The maximum energy stored in the capacitor is", round(E,2),"J"
#Given
I0=10 #A
w=314
L=5
#Calculation
E=0.5*L*I0**2
E0=w*L*I0
C=(E*2)/(E0**2)
#Result
print"Capacitance of the capacitor is",round(C*10**6,2),"micro F"
#Given
f=50
L=31.8*10**-3 #H
R=7.0 #ohm
Ev=230 #V
#Calculation
import math
Xl=2*math.pi*f*L
Z=math.sqrt(R**2+Xl**2)
Iv=Ev/Z
T=Xl/R
a=math.atan(T)*180/3.14
a1=math.cos(a)*3.14/180.0
P=Iv**2*R
t=55*math.pi/(180.0*3.14)
#Result
print"(i) Circuit current is",round(Iv,2),"A"
print"(ii) Phase angle is", round(a,0),"lag"
print"(iii) Power factor is", round(a1*10**3,3),"lag"
print"(iv) Power consumed is",round(P,0),"W"
print"Time lag between voltage maximum and current maximum is",round(t*10**1,2),"*10**-3 S"
#Given
P=400 #W
Ev=250 #V
Iv=2.5 #A
#Calculation
import math
a=P/(Ev*Iv)
Z=Ev/Iv
R=Z*a
Xl=math.sqrt(Z**2-R**2)
L=Xl/(2*math.pi*f)
#Result
print"(i) The power factor is",a,"lag"
print"(ii) Resistance of the coil is", R,"ohm"
print"(iii) Inductance of the coil is", round(L,3),"H"
#Given
Vr=150 #V
R=75.0 #ohm
f=50 #Hz
L=318*10**-3 #H
#Calculation
import math
Iv=Vr/R
Xl=2*math.pi*f*L
Vl=Iv*Xl
Z=math.sqrt(R**2+Xl**2)
Ev=Iv*Z
a=Xl/R
a1=math.atan(a)*180/3.14
#Result
print "(i) The supply voltage is",round(Ev,0),"V"
print"(ii) The phase angle is",round(a1,2),"degree lag"
#Given
P=60 #W
Ev=100.0 #V
Ev1=220 #v
f=50 #Hz
#Calculation
Iv=P/Ev
Vr=Ev1-Ev
R=Vr/Iv
Xl=Vl/Iv
Vl=math.sqrt(Ev1**2-Ev**2)
L=Xl/(2*math.pi*f)
#Result
print"(i) The value of non inductive resistance is", R,"ohm"
print"(ii) Pure inductance is",round(L,2),"H"
#Given
f1=50.0
L=1
E=100 #V
I=1.0 #A
Iv=0.5 #A
f=0
#Calculation
import math
Xl=2*math.pi*f*L
R=E/I
Z=Ev/Iv
Xl1=math.sqrt(Z**2-R**2)
L=Xl1/(2.0*math.pi*f1)
#Result
print"The value of resistance is",R ,"ohm"
print"The value of impedence is",Z,"ohm"
print"Inductance of the coil is",round(L,2),"H"
#Given
I=10**6 #A
f=50 #Hz
C=79.5
R=30 #ohm
Ev=100 #V
#Calculation
import math
Xc=I/(2*math.pi*f*C)
Z=math.sqrt(R**2+Xc**2)
Iv=Ev/Z
a=Xc/R
a1=math.atan(a)*180/3.14
w=2*math.pi*f
I0=math.sqrt(2)*Iv
#Result
print"(i) Circuit impedence is", round(Z,0),"ohm"
print"(ii) Circuit current is",round(Iv,0),"A"
print"(iii) Phase angle is",round(a1,0),"degree lead"
print"(iv) Equation for the instantaneous value of current is",round(I0,3),"sin(",round(w,0),"t+",round(a1,0),"degree)"
#Given
P=80 #W
V=100.0 #v
V1=200 #V
f=50 #Hz
#Calculation
import math
Iv=P/V
Vc=math.sqrt(V1**2-V**2)
Xc=Vc/Iv
C=1/(2.0*math.pi*f*Xc)
#Result
print"Capcitance of a capacitor is", round(C*10**6,1),"micro F"
#Given
Ev=200 #V
Iv=10.0
f=50 #Hz
#Calculation
z=Ev/Iv
R=z*math.cos(30*3.14/180.0)
Xc=z*math.sin(30*3.14/180.0)
C=1/(2.0*math.pi*f*Xc)
#Result
print"(i) Value of resistance is", round(R,2),"ohm"
print"(ii) Capacitive reactance is", round(Xc,0),"ohm"
print"(iii) Capacitance of the circuit is", round(C*10**6,0),"micro F"
#Given
Iv=5 #A
R=10 #ohm
Ev=60 #V
C=400 #micro F
#Calculation
import math
Vr=Iv*R
Vc=math.sqrt(Ev**2-Vr**2)
Xc=Vc/Iv
f=1/(2.0*math.pi*C*Xc)
a=Vc/Vr
a1=math.atan(a)*180/3.14
#Result
print"The value of supplied frequency is", round(f*10**6,0),"Hz"
print"Phase angle between circuit current and supply voltage is",round(a1,1),"degree lead"
#Given
R=200 #ohm
C=15*10**-6 #F
Ev=220 #V
f=50 #Hz
#Calculation
import math
Xc=1/(2*math.pi*f*C)
Z=math.sqrt(R**2+Xc**2)
Iv=Ev/Z
Vr=Iv*R
Vc=Iv*Xc
V=Vr+Vc
Vrc=math.sqrt(Vr**2+Vc**2)
#Result
print"(a) The current in the circuit is", round(Iv,3),"A"
print"(b) Voltage across the resistor and capacitor is",Vrc,"V"
#Given
R1=10.0 #ohm
R2=5.0 #ohm
R3=15 #ohm
Ev=200
#Calculation
import math
R=R1+R2+R3
X=R3-(R1+R3)
Z=math.sqrt(R**2+R1**2)
Iv=Ev/Z
T=X/R
a=-math.atan(T)*180/3.14
b=math.cos(a*3.14/180.0)
P=Iv**2*R
print"(i) Circuit current is",round(Iv,2) ,"A"
print"(ii) Circuit phase angle is",round(a,2),"degree lead"
print"(iii)Phase angle between applied voltage and circuit current ",round(b,3),"lead"
print"(iv)Power consumed is",P,"W"
#Given
F=50 #HZ
L=0.06
C=6.8
l=10**6
R=2.5
Ev=230 #V
#Calculation
import math
Xl=2*math.pi*F*L
Xc=l/(2*math.pi*F*C)
Z=math.sqrt(R**2+(Xl-Xc)**2)
Iv=Ev/Z
a=(Xl-Xc)/R
a2=-math.atan(a)*180.0/3.14
P=R/Z
P1=Ev*Iv*P
#Result
print"(i) Circuit impedence is",round(Z,1),"ohm"
print"(ii) Circuit current is",round(Iv,3),"A"
print"(iii) Phase angle is ",round(a2,1),"degree lead"
print"(iv) Power factor is",round(P,4),"lead"
print"(v) Power consumed is",round(P1,2),"W"
#Given
a=65 #degree
b=20 #degree
w=3000
L=0.01
E0=400 #V
I=10
f=50
#calculation
import math
a=a-b
Xl=w*L
Z=E0/(I*math.sqrt(2))
R=Z/math.sqrt(2)
Xc=Xl-R
C=1/(w*Xc*10**-6)
#Result
print" The value of C is" ,round(C,1),"microF"
print" The value of R is",R,"ohm"
#Given
f=50 #Hz
L=0.03
R=8 #ohm
Ev=240 #V
#Calculation
import math
Xl=2*math.pi*f*L
Z=math.sqrt(R**2+Xl**2)
Iv=Ev/Z
P=Iv**2*R
a=R/Z
Xc=2*Xl
C=1/(2*math.pi*f*Xc)
#Result
print"(i) The value of current is",round(Iv,2) ,"A"
print" The value of power is",round(P,0),"W"
print " Power factor is",round(a,2),"lag"
print"(ii) The vaue of capacitance is", round(C*10**6,0),"micro F"
#Given
Vr=65 #V
R=100.0 #ohm
Vl=204
Vc=415
#Calculation
import math
Iv=Vr/R
Xl=Vl/Iv
L=Xl/(2*math.pi*f)
Xc=Vc/Iv
C=1/(2*math.pi*f*Xc)
#Result
print"(i) Circuit current is", Iv,"A"
print"(ii) Inductance is",round(L,0),"H"
print"(iii) The value of capacitance is",round(C*10**6,0),"micro F"
#Given
C=100*10**-12 #F
L=100*10**-6 #H
Ev=10
R=100.0 #ohm
#Calculation
import math
fr=1/(2*math.pi*math.sqrt(L*C))
Iv=Ev/R
Vl=Iv*2*math.pi*fr*L
Vc=Iv/(2.0*math.pi*fr*C)
#Result
print"(i) Resonant frequency is", round(fr*10**-6,2),"*10**6 HZ"
print"(ii) Current at resonance is", Iv,"A"
print"(iii) Voltage across L and C is", Vc,"V"
#Given
f=50 #Hz
L=0.5
Ev=100 #v
R=4 #ohm
#Calculation
import math
C=1/(4*math.pi**2*f**2*L)
Ir=Ev/R
Vr=Ir*2*math.pi*f*L
Vc=Ir/(2*math.pi*f*C)
#Result
print"(i) The capacitance is", round(C*10**6,2),"micro F"
print"(ii) The voltage across inductance and capacitance is", round(Vc,0),"V"
#Given
f=50 #Hz
L=0.318 #H
Iv=2.3
R=100 #ohm
#Calculation
import math
C=1/((2*math.pi*f)**2*L)
Vl=Iv*2*math.pi*f*C*10**4
P=Iv**2*R
#Result
print"(i) The value of capacitor is", round(C*10**6,1),"micro F"
print"(ii) Voltage across the inductor is", round(Vl,0),"V"
print"(iii)Total power consumed is",P,"W"
#Given
E0=283 #V
f=50 #Hz
R=3.0 #ohm
L=25.48*10**-3 #h
C=796*10**-6 #F
Xl=8
#Calculation
import math
Xc=1/(2*math.pi*f*C)
Z=math.sqrt(R**2+(Xl-Xc)**2)
a=math.atan(Xc/R)*180/3.14
Iv=(E0/math.sqrt(2))/Z
P=Iv**2*R
a1=math.cos(a*180/3.14)
#Result
print"(a) The inpedence of the circuit is", round(Z,0),"ohm"
print"(b) The phase difference is", round(a,1),"degree"
print"(c) The power dissipated is", round(P,0),"W"
print"(d) Power factor is", round(a1,1),"lag"
#Given
L=25.48*10**-3 #H
C=796*10**-6
R=3.0 #ohm
E0=283
#Calculation
import math
fr=1/(2.0*math.pi*math.sqrt(L*C))
Iv=(E0/math.sqrt(2))/R
P=Iv**2*R
#Result
print"(a) Frequency of the source is", round(fr,1),"Hz"
print"(b) The value of impedence is",R,"ohm"
print"The value of current is",round(Iv,1),"A"
print"The power dissipated is",round(P,0),"W"
#Given
C=1200*10**-12 #F
E=500
L=0.075 #H
#Calculation
import math
q0=C*E
I0=q0/(math.sqrt(L*C))
f=1/(2*math.pi*math.sqrt(L*C))
T=1/f
U=q0**2/(2.0*C)
#Result
print"(i) The initial charge onthe capcitor is",q0,"c"
print"(ii) The maximum current is",round(I0*10**3,0),"mA"
print"(iii) The value of frequency is", round(f*10**-3,0),"*10**3 Hz"
print"Time period is", round(T*10**5,0),"*10**-5 S"
print"(iv) Total energy is",U*10**4,"*10**-4 J"
#Given
L=8*10**-6 #H
C=0.02*10**-6 #F
c=3*10**8
#Calculation
f=1/(2*math.pi*math.sqrt(L*C))
w=c/f
#Result
print"Wavelength is", round(w*10**-2,2),"*10**2 m"