# Chapter : 6 - Sinusoidal Oscillators¶

## Example 6.3 : Page No - 272¶

In [1]:
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

The circuit will work as the oscillator
The frequency of oscillations = 31.2069 kHz


## Example 6.4 : Page No - 272¶

In [3]:
#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

The value of R1 = R2 = 3.183 kΩ
The value of R3 = 10 kΩ
The value of R4 = 20 kΩ