Hypotrochoid

L = [[6*cos(pi*i/100)+5*cos((6/2)*pi*i/100), \
6*sin(pi*i/100)-5*sin((6/2)*pi*i/100)]
….for i in range(200)]
p = polygon(L, rgbcolor=(1/2,1/4,1/8))
p.save()

L = [[6*cos(pi*i/100)+3*cos((6/2)*pi*i/100), \
6*sin(pi*i/100)-3*sin((6/2)*pi*i/100)]
….for i in range(200)]
p = polygon(L, rgbcolor=(1/2,1/4,1/8))
p.save()

L = [[5*cos(pi*i/100)+5*cos(3*pi*i/100), \
5*sin(pi*i/100)-5*sin(3*pi*i/100)]
….for i in range(200)]
p = polygon(L, rgbcolor=(1/8,1/4,1/2))
p.save()

[SAGE], SAGE Mathematical Software, Version 3.2.3, http://www.sagemath.org

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s