from numpy import pi
#Given data
R3 = 6 # in k ohm
R4 = 2 # in k ohm
A = 1+(R3/R4)
if A>3 :
print "The circuit will work as the oscillator"
R = 5.1 # in k ohm
R = R * 10**3 # in ohm
C = 0.001 # in µF
C = C * 10**-6 # in F
f = 1/(2*pi*R*C) # in Hz
f = f * 10**-3 # in kHz
print "The frequency of oscillations = %0.4f kHz" %f
#Given data
C = 0.05 # in µF
C = C * 10**-6 # in F
f = 1 # in kHz
f = f * 10**3 # in Hz
R = 1/(2*pi*f*C) # in ohm
R = R * 10**-3 # in k ohm
print "The value of R1 = R2 = %0.3f kΩ" %R
R4 = 10 # in k ohm
print "The value of R3 = %0.f kΩ" %R4
R3 = 2*R4 # in k ohm
print "The value of R4 = %0.f kΩ" %R3