1 2 3 4 5 6 7 8 9 10 11 12 | # Plot n-curves. Run the code for different values of n.
from pylab import *
n = 2
t = linspace(0, 1, 3000)
x = cos(2*pi*n*t) + cos(2*pi*t) -1
y = sin(2*pi*n*t) + sin(2*pi*t)
plot(x,y)
show()
|
1 2 3 4 5 6 7 8 9 10 11 12 | # Plot n-curves. Run the code for different values of n.
from pylab import *
n = 2
t = linspace(0, 1, 3000)
x = cos(2*pi*n*t) + cos(2*pi*t) -1
y = sin(2*pi*n*t) + sin(2*pi*t)
plot(x,y)
show()
|