from __future__ import division
import math
#initializing the variables:
L = 0.32;# in Henry
f1 = 50;# in Hz
f2 = 5000;# in Hz
Z = 124;# in ohms
#calculation:
XL = 2*math.pi*f1*L
L = Z/(2*math.pi*f2)
#Results
print "\n\n Result \n\n"
print "\n (a)Inductive reactance, XL = ",round(XL,2)," ohms \n"
print "\n (b)Inductance L = ",round((L/1E-3),2)," mH \n"
from __future__ import division
import math
#initializing the variables:
L = 0.040;# in Henry
V1 = 240;# in volts
V2 = 100;# in volts
f1 = 50;# in Hz
f2 = 1000;# in Hz
#calculation:
XL1 = 2*math.pi*f1*L
I1 = V1/XL1
XL2 = 2*math.pi*f2*L
I2 = V2/XL2
#Results
print "\n\n Result \n\n"
print "\n (a)Inductive reactance, XL = ",round( XL1,2)," ohms and current I = ",round( I1,2)," A\n"
print "\n (b)Inductive reactance, XL = ",round( XL2,2)," ohms and current I = ",round( I2,2)," A\n"
from __future__ import division
import math
#initializing the variables:
C = 10E-6;# in Farads
f1 = 50;# in Hz
f2 = 20000;# in Hz
#calculation:
Xc1 = 1/(2*math.pi*f1*C)
Xc2 = 1/(2*math.pi*f2*C)
#Results
print "\n\n Result \n\n"
print "\n (a)Capacitive reactance, Xc = ",round( Xc1,2)," ohms "
print "\n (b)Capacitive reactance, Xc = ",round( Xc2,2)," ohms "
from __future__ import division
import math
#initializing the variables:
Z = 40;# in ohms
f = 50;# in Hz
#calculation:
C = 1/(2*math.pi*f*Z)
#Results
print "\n\n Result \n\n"
print "\n Capacitance,C = ",round((C/1E-6),2)," uF "
from __future__ import division
import math
#initializing the variables:
C = 23E-6;# in Farads
f = 50;# in Hz
V = 240;# in volts
#calculation:
Xc = 1/(2*math.pi*f*C)
I = V/Xc
#Results
print "\n\n Result \n\n"
print "\n current I = ",round(I,2)," A "
from __future__ import division
import math
#initializing the variables:
Vr = 12;# in volts
Vl = 5;# in volts
#calculation:
V = (Vr**2 + Vl**2)**0.5
phi = math.atan(Vl/Vr)
phid = phi*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n supply voltage V = ",V," V, phase angle between current and voltage is ", round(phid,2),"deg lagging"
from __future__ import division
import math
#initializing the variables:
V = 240;# in volts
R = 4;# in ohms
L = 0.00955;# in Henry
f = 50;# in Hz
#calculation:
XL = 2*math.pi*f*L
Z = (R**2 + XL**2)**0.5
I = V/Z
phid = math.atan(XL/R)*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n (a)Inductive reactance, XL = ",round(XL,2)," ohms"
print "\n (b)Impedance, Z = ",round(Z,2)," ohms"
print "\n (c)Current, I = ",round(I,2)," A"
print "\n (d)phase angle between the supply voltage and current is ",round(phid,2),"deg lagging\n"
from __future__ import division
import math
#initializing the variables:
Vdc = 12;# in volts
Vac = 240;# in volts
Iac = 20;# in Amperes
Idc = 2;# in Amperes
f = 50;# in Hz
#calculation:
R = Vdc/Idc
Z = Vac/Iac
XL = (Z**2 - R**2)**0.5
L = XL/(2*math.pi*f)
#Results
print "\n\n Result \n\n"
print "\n (a)Resistance, R = ",R," ohms"
print "\n (b)Impedance, Z = ",Z," ohms"
print "\n (c)Inductive reactance, XL = ",round(XL,2)," ohms"
print "\n (d)Inductance, L = ",round(L,2)," H"
from __future__ import division
import math
#initializing the variables:
R = 200;# in ohms
L = 0.3183;# in henry
V = 240;# in volts
f = 50;# in Hz
#calculation:
XL = 2*math.pi*f*L
Z = (R**2 + XL**2)**0.5
I = V/Z
VL = I*XL
VR = I*R
phid = math.atan(XL/R)*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n (a)Inductive reactance, XL = ",round(XL,2)," ohms"
print "\n (b)Impedance, Z = ",round(Z,2)," ohms"
print "\n (c)current, I = ",round(I,2)," A"
print "\n (d)p.d. across Inductor, VL = ",round(VL,2)," V and p.d. across resistance, VR = ",round(VR,2)," V"
print "\n (e)circuit phase angle is ",round(phid,2)," deg lagging\n"
from __future__ import division
import math
#initializing the variables:
R = 100;# in ohms
L = 0.2;# in henry
Vmax = 200;# in volts
w = 500;# in rad/sec
#calculation:
Vrms = 0.707*Vmax
f = w/(2*math.pi)
XL = 2*math.pi*f*L
Z = (R**2 + XL**2)**0.5
I = Vrms/Z
VL = I*XL
VR = I*R
phid = math.atan(XL/R)*180/math.pi
\
#Results
print "\n\n Result \n\n"
print "\n (a)Impedance, Z = ",round(Z,2)," ohms"
print "\n (b)current, I = ",round(I,2)," A"
print "\n (c)p.d. across resistance, VR = ",round(VR,2)," V"
print "\n (d)p.d. across Inductor, VL = ",round(VL,2)," V"
print "\n (e)circuit phase angle is ",phid,"deg\n"
from __future__ import division
import math
#initializing the variables:
R = 30;# in ohms
L = 1.2273E-3;# in henry
f = 5000;# in Hz
VR = 6;# in volts
#calculation:
I =VR/R
XL = 2*math.pi*f*L
Z = (R**2 + XL**2)**0.5
V = I*Z
VL = I*XL
#Results
print "\n\n Result \n\n"
print "\n (a)supply voltage = ",round(V,2)," Volts"
print "\n (b)p.d. across Inductor, VL = ",round(VL,2)," V"
from __future__ import division
import math
#initializing the variables:
R = 60;# in ohms
Rc = 20;# in ohms
L = 159.2E-3;# in henry
f = 50;# in Hz
V = 240;# in volts
#calculation:
XL = 2*math.pi*f*L
Rt = R + Rc
Z = (Rt**2 + XL**2)**0.5
I = V/Z
phid = math.atan(XL/Rt)*180/math.pi
VR = I*R
Zc = (Rc**2 + XL**2)**0.5
Vc = I*Zc
VL = I*XL
VRc = I*Rc
#Results
print "\n\n Result \n\n"
print "\n (a)Impedance, Z = ",round(Z,2)," ohms"
print "\n (b)current, I = ",round(I,3)," A"
print "\n (c)circuit phase angle is ",round(phid,0),"deg lagging"
print "\n (d)p.d. across resistance, VR = ",round( VR,1)," V"
print "\n (e)p.d. across coil, Vc = ",round(Vc,1)," V"
print "\n (f1)p.d. across Inductor, VL = ",round(VL,2)," V"
print "\n (f2)p.d. across coil resistance, VRc = ",round(VRc,2)," V"
from __future__ import division
import math
#initializing the variables:
R = 25;# in ohms
C = 45E-6;# in Farads
f = 50;# in Hz
V = 240;# in volts
#calculation:
Xc = 1/(2*math.pi*f*C)
Z = (R**2 + Xc**2)**0.5
I = V/Z
phid = math.atan(Xc/R)*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n (a)Impedance, Z = ",round(Z,2)," ohms"
print "\n (b)current, I = ",round(I,2)," A"
print "\n (c)phase angle between the supply voltage and current is ",round(phid,2),"deg leading"
from __future__ import division
import math
#initializing the variables:
R = 40;# in ohms
f = 60;# in Hz
I = 3;#in amperes
Z = 50;# in ohms
#calculation:
Xc = (Z**2 - R**2)**0.5
C = 1/(2*math.pi*f*Xc)
V = I*Z
phid = math.atan(Xc/R)*180/math.pi
VR = I*R
Vc = I*Xc
#Results
print "\n\n Result \n\n"
print "\n (a)capacitance, C = ",round((C/1E-6),2)," uF"
print "\n (b)Voltage, V = ",V," Volts"
print "\n (c)phase angle between the supply voltage and current is ",round(phid,2),"deg leading"
print "\n (d)p.d. across resistance, VR = ", VR," V"
print "\n (e)p.d. across Capacitor, Vc = ",Vc," V"
from __future__ import division
import math
#initializing the variables:
R = 5;# in ohms
C = 100E-6;# in Farads
L = 0.12;# in Henry
f = 50;# in Hz
V = 300;# in volts
#calculation:
XL = 2*math.pi*f*L
Xc = 1/(2*math.pi*f*C)
X = XL - Xc
#Since XL is greater than Xc, the circuit is inductive.
Z = (R**2 + (XL-Xc)**2)**0.5
I = V/Z
phid = math.atan((XL-Xc)/R)*180/math.pi
Zcl = (R**2 + XL**2)**0.5
Vcl = I*Zcl
phidc = math.atan(XL/R)*180/math.pi
Vc = I*Xc
#Results
print "\n\n Result \n\n"
print "\n (a)Current,I = ",round(I,2)," A"
print "\n (b)phase angle between the supply voltage and current is ",round(phid,2),"deg"
print "\n (c)Voltage across the coil, Vcoil = ",round(Vcl,0)," Volts"
print "\n (d)p.d. across Capacitor, Vc = ",round(Vc,0)," V"
from __future__ import division
import math
#initializing the variables:
R1 = 8;# in ohms
C = 0.25E-6;# in Farads
L = 130E-6;# in Henry
Rc = 5;# in ohms
R2 = 10;# in ohms
f = 20000;# in Hz
V = 40;# in volts
#calculation:
XL = 2*math.pi*f*L
Xc = 1/(2*math.pi*f*C)
X = Xc - XL
R = R1 + R2 + Rc
#Since Xc is greater than XL, the circuit is capacitive.
Z = (R**2 + (Xc-XL)**2)**0.5
I = V/Z
phid = math.atan((Xc-XL)/R)*180/math.pi
V1 = I*R1
V2 = I*((Rc**2 + XL**2)**0.5)
V3 = I*((R2**2 + Xc**2)**0.5)
#Results
print "\n\n Result \n\n"
print "\n (a)Current,I = ",round(I,2)," A"
print "\n (b)circuit phase angle is ",round(phid,2),"deg leading"
print "\n (c1)Voltage across the Resistance of 8 ohms = ",round(V1,2)," Volts"
print "\n (c2)Voltage across the coil, Vcoil = ",round(V2,2)," Volts"
print "\n (c3)p.d. across Capacitor resistance circuit = ",round(V3,2)," Volts"
from __future__ import division
import math
#initializing the variables:
R1 = 4;# in ohms
C = 1.273E-6;# in Farads
L = 0.286E-3;# in Henry
R2 = 8;# in ohms
f = 5000;# in Hz
I = 5;# in amperes
#calculation:
XL = 2*math.pi*f*L
phid1 = math.atan(XL/R1)*180/math.pi
V1 = I*((R1**2 + XL**2)**0.5)
Xc = 1/(2*math.pi*f*C)
V2 = I*((R2**2 + Xc**2)**0.5)
phid2 = math.atan(Xc/R2)*180/math.pi
Z = ((R1+R2)**2 + (Xc-XL)**2)**0.5
V = I*Z
phid = math.atan((Xc-XL)/(R1+R2))*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n (a)Voltage supply, V = ",round(V,2)," V"
print "\n (b)circuit phase angle is ",round(phid,2),"deg leading"
from __future__ import division
import math
#initializing the variables:
R = 10;# in ohms
C = 60E-6;# in Farads
L = 125E-3;# in Henry
V = 120;# in Volts
#calculation:
fr = 1/(2*math.pi*(L*C)**0.5)
#At resonance, XL = Xc and impedance Z = R
I = V/R
#Results
print "\n\n Result \n\n"
print "\n (a)Resonance frequency,Fr = ",round(fr,2)," Hz"
print "\n (b)Current, I = ",round(I,2)
from __future__ import division
import math
#initializing the variables:
L = 0.05E-3;# in Henry
fr = 200000;# in Hz
V = 0.002;# in Volts
I = 0.1E-3;# in amperes
#calculation:
# L-C-R
#At resonance, XL = Xc and impedance Z = R
R = V/I
C = 1/(L*(2*math.pi*fr)**2)
#Results
print "\n\n Result \n\n"
print "\n (a)Resistance, R = ",round(R,2)," ohms"
print "\n (b)Capacitance, C = ",round((C/1E-9),2),"nF"
from __future__ import division
import math
#initializing the variables:
L = 80E-3;# in Henry
C = 0.25E-6;# in Farads
R = 12.5;# in ohms
V = 100;# in Volts
#calculation:
fr = 1/(2*math.pi*((L*C)**0.5))
#At resonance, XL = Xc and impedance Z = R
I = V/R
VL = I*(2*math.pi*fr*L)
Vc = I/(2*math.pi*fr*C)
Vm = VL/V
#Results
print "\n\n Result \n\n"
print "\n (a)the resonant frequency = ",round(fr,2)," Hz"
print "\n (b)Current, I = ",round(I,2),""
print "\n (b)Voltage magnification at resonance = ",round(Vm,2)," V"
from __future__ import division
import math
#initializing the variables:
L = 60E-3;# in Henry
C = 30E-6;# in Farads
R = 2;# in ohms
#calculation:
Q = ((L/C)**0.5)/R
#Results
print "\n\n Result \n\n"
print "\n At resonance, Q-factor = ",round(Q,2)
from __future__ import division
import math
#initializing the variables:
L = 100E-3;# in Henry
C = 2E-6;# in Farads
R = 10;# in ohms
V = 50;# in Volts
#calculation:
fr = 1/(2*math.pi*((L*C)**0.5))
#At resonance, XL = Xc and impedance Z = R
I = V/R
VL = I*(2*math.pi*fr*L)
Vc = I/(2*math.pi*fr*C)
Q = VL/V
#Results
print "\n\n Result \n\n"
print "\n (a)the resonant frequency = ",round(fr,2)," Hz"
print "\n (b)Current, I = ",round(I,2),""
print "\n (c)Voltage across coil at resonance is ",round(VL,2),"V "
print "and Voltage across capacitance at resonance is ",round( Vc,2),"V"
print "\n (d)At resonance, Q-factor = ",round(Q,2)
from __future__ import division
import math
#initializing the variables:
L = 20E-3;# in Henry
R = 10;# in ohms
fr = 5000;# in Hz
#calculation:
Qr = (2*math.pi*fr)*L/R
bw = fr/Qr
#Results
print "\n\n Result \n\n"
print "\n Bandwidth, (f2-f1) = ",round(bw,2)," Hz"
from __future__ import division
import math
#initializing the variables:
R = 5000;# in ohms
Imax = 0.250;# in Amperes
#calculation:
Irms = 0.707*Imax
P = Irms*Irms*R
#Results
print "\n\n Result \n\n"
print "\n Power, P = ",round(P,2)," Watts"
from __future__ import division
import math
#initializing the variables:
R = 60;# in ohms
L = 75E-3;# in Henry
V = 110;# in Volts
f = 60;# in Hz
#calculation:
XL = 2*math.pi*f*L
Z = (R**2 + XL**2)**0.5
I = V/Z
P = I*I*R
#Results
print "\n\n Result \n\n"
print "\n Power, P = ",round(P,2)," Watts"
from __future__ import division
import math
#initializing the variables:
VI = 300;# in VA
V = 150;# in Volts
f = 50;# in Hz
#calculation:
I = VI/V
XL = V/I
L = XL/(2*math.pi*f)
#Results
print "\n\n Result \n\n"
print "\n Inductance = ",round(L,2)," H"
from __future__ import division
import math
#initializing the variables:
VI = 200000;# in VA
pf = 0.8;# power factor
#calculation:
P = VI*pf
Q = VI*math.sin(math.acos(pf))
#Results
print "\n\n Result \n\n"
print "\n rated power output is ",round(P/1000,2),"KW and the corresponding reactive power is ",round(Q/1000,2),"kvar"
from __future__ import division
import math
#initializing the variables:
V = 120;# in Volts
f = 50;# in Hz
P = 400;# in Watt
I = 8;# in Amperes
#calculation:
R = P/(I*I)
Z = V/I
XL = (Z**2 - R**2)**0.5
pf = P/(V*I)
phi = math.acos(pf)*180/math.pi
#Results
print "\n\n Result \n\n"
print "\n (a)resistance = ",round(R,2)," ohm "
print "\n (b)Impedance Z = ",round(Z,2)," Ohm "
print "\n (c)reactance = ",round(XL,2)," ohm "
print "\n (d)Power factor = ",round(pf,2),""
print "\n (e)phase angle = ",round(phi,2),"deg lagging"
from __future__ import division
import math
#initializing the variables:
V = 100;# in Volts
f = 60;# in Hz
P = 100;# in Watt
pf = 0.5;# power factor
#calculation:
I = P/(pf*V)
phi = math.acos(pf)*180/math.pi
R = P/(I*I)
Z = V/I
Xc = (Z**2 - R**2)**0.5
C = 1/(2*math.pi*f*Xc)
#Results
print "\n\n Result \n\n"
print "\n (a)Current I = ",round(I,2)," A "
print "\n (b)phase angle = ",round(phi,2),"deg leading"
print "\n (c)resistance = ",round(R,2)," ohm "
print "\n (d)Impedance Z = ",round(Z,2)," Ohm "
print "\n (e)capacitance = ",round((C/1E-6),2),"uF "