import math
#Variables
L = 150.0 * 10**-6 #Inductance (in Henry)
C = 100.0 * 10**-12 #Capacitance (in Farad)
#Calculation
fo = 0.159 / (L * C)**0.5 #Resonant frequency (in Hertz)
#Result
print "The resonant frequency is ",round(fo * 10**-6,1)," MHz."
import math
#Variables
L = 100.0 * 10**-6 #Inductance (in Henry)
C = 100.0 * 10**-12 #Capacitance (in Farad)
R = 5.0 #Resistance (in ohm)
#Calculation
fo = 0.159 / (L * C)**0.5 #Resonant frequency (in Hertz)
Zp = L / (C*R) #Circuit impedance at resonance (in ohm)
#Result
print "Resonant frequency is ",fo * 10**-6," MHz.\nCircuit impedance at resonance is ",Zp * 10**-3," kilo-ohm."
import math
#Variables
fo = 1.0 * 10**6 #Resonant frequency (in Hertz)
Qo = 100.0 #Quality factor
#Calculation
BW = fo / Qo #Bandwidth (in Hertz)
#Result
print "Bandwidth of the circuit is ",BW * 10**-3," kHz."
import math
#Variables
fo = 1600.0 * 10**3 #Resonant frequency (in Hertz)
BW = 10.0 * 10**3 #Bandwidth (in Hertz)
#Calculation
Qo = fo / BW #Quality factor
#Result
print "The Q-factor is ",Qo,"."
import math
#Variables
fo = 2.0 * 10**6 #Resonant frequency (in Hertz)
BW = 50.0 * 10**3 #Bandwidth (in Hertz)
#Calculation
Qo = fo / BW #Quality factor
#Result
print "The Q-factor is ",Qo,"."
import math
#Variables
fo = 455.0 * 10**3 #Resonant frequency (in Hertz)
BW = 10.0 * 10**3 #Bandwidth (in Hertz)
XL = 1255.0 #Inductive reactance (in ohm)
#Calculation
Qo = fo / BW #Quality factor
R = XL / Qo #Resistance (in ohm)
L = XL / (2*math.pi*fo) #Inductance (in Henry)
C = 1 / (XL*2*math.pi*fo) #Capacitance (in Farad)
Zp = L / (C*R) #Circuit impedance (in ohm)
#Result
print "The value of circuit impedance at resonance is ",round(Zp * 10**-3)," kilo-ohm."