#Calculate frequency of oscillations
#given
import math
L=55.*10.**-6.;#H
C=300.*10.**-12.;#F
fo=1./(2.*math.pi*math.sqrt(L*C));
print '%s %.f %s' %("The frequency of oscillations =",fo/1000,"kHz\n");
#Calculate frequency of oscillations and feedback factor and voltage gain
#given
def prll(r1,r2):
z=r1*r2/(r1+r2)#
return z
import math
C1=0.001*10.**-6.;#F
C2=0.01*10.**-6.;#F
L=15.*10.**-6.;#H
C=prll(C1,C2);
fo=1./(2.*math.pi*math.sqrt(L*C));
print '%s %.2f %s' %("The frequency of oscillations =",fo/10**6,"MHz\n");
B=C1/C2;
Amin=1./B;
print '%s %.1f %s' %("The feedback factor of the circuit =",B,"\n");
print '%s %.f' %("The circuit needs a minimum voltage gain of",Amin);
#Calculate frequency of oscillations
#given
import math
R=10.*10.**3.;#ohm
C=0.01*10.**-6.;#F
fo=1./(2.*math.pi*R*C*math.sqrt(6.));
print '%s %.1f %s' %("The frequency of oscillations =",fo,"Hz\n");
#Calculate frequency of oscillations
#given
import math
R=22.*10.**3.;#ohm
C=100.*10.**-12.;#F
fo=1./(2.*math.pi*R*C);
print '%s %.2f %s' %("The frequency of oscillations =",fo/1000,"KHz\n");
#Determine the series and parallel resonant frequencies
#given
def prll(r1,r2):
z=r1*r2/(r1+r2)#
return z
import math
L=3.;#H
Cm=10.*10.**-12.;#F
Cs=0.05*10.**-12.;#F
fs=1./(2.*math.pi*math.sqrt(L*Cs));
print '%s %.f %s' %("The series resonant frequency =",fs/1000,"kHz\n");
Cp=prll(Cm,Cs);
fp=1./(2.*math.pi*math.sqrt(L*Cp));
print '%s %.f %s' %("The parallel resonant frequency =",fp/1000,"kHz");
#Determine the series and parallel resonant frequencies
#given
def prll(r1,r2):
z=r1*r2/(r1+r2)#
return z
import math
L=3.;#H
Cm=10.*10.**-12.;#F
Cs=0.05*10.**-12.;#F
fs=1./(2.*math.pi*math.sqrt(L*Cs));
print '%s %.f %s' %("The series resonant frequency =",fs/1000,"kHz\n");
Cp=prll(Cm,Cs);
fp=1./(2.*math.pi*math.sqrt(L*Cp));
print '%s %.f %s' %("The parallel resonant frequency =",fp/1000,"kHz");