Chapter 11, Lissajous' Figures

Example 1, page 448

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
Frequency, n2a = 100.50 
frequency, n2b = 99.50 

Example 2, page 448

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
Frequency, n1a = 400.07 Hz 
Frequency, n1b = 399.93 Hz 
Frequency, n_1a = 400.10 Hz 
Frequency, n_1b = 399.90 Hz 

Example 3, page 449

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
Frequency, n1a = 512.07 Hz 
Frequency, n1b = 511.93 Hz 
Frequency, n_1a = 512.10 Hz 
Frequency, n_1b = 511.90 Hz