Computational Physics
Search This Blog
Saturday, July 2, 2011
Parametric curves
from pylab import*
a=5
b=3
wx=4
wy=5
dx=0
dy=0
t=linspace(0,10,200)
x=a*cos(wx*t-dx)
y=b*sin(wy*t-dy)
figure(1,figsize=(4,4))
plot(x,y)
show()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment