In [3]:

```
# Frequencies
#given data :
t=2.0 # in sec
n1=100.0 # in vibrations/sec
n2a=n1+(1/t)
n2b=n1-(1/t)
print "Frequency, n2a = %0.2f " %n2a
print "frequency, n2b = %0.2f "%n2b
```

In [6]:

```
from __future__ import division
# Frequencies
#given data :
t1=15 # in sec
t2=10 # in sec
n2=400 # in vibrations/sec
n1a=n2+(1/t1)
n1b=n2-(1/t1)
print "Frequency, n1a = %0.2f Hz " %n1a
print "Frequency, n1b = %0.2f Hz " %n1b
n_1a=n2+(1/t2)
n_1b=n2-(1/t2)
print "Frequency, n_1a = %0.2f Hz " %n_1a
print "Frequency, n_1b = %0.2f Hz " %n_1b
```

In [7]:

```
# Frequencies
#given data :
t1=15 # in sec
t2=10 # in sec
n2=256 # in vibrations/sec
n1a=(2*n2)+(1/t1)
n1b=(2*n2)-(1/t1)
print "Frequency, n1a = %0.2f Hz " %n1a
print "Frequency, n1b = %0.2f Hz " %n1b
n_1a=(2*n2)+(1/t2)
n_1b=(2*n2)-(1/t2)
print "Frequency, n_1a = %0.2f Hz " %n_1a
print "Frequency, n_1b = %0.2f Hz " %n_1b
```