Image:Splined epitrochoid.png

From Wikipedia, the free encyclopedia

[edit] Summary

Description Boulder, Colorado

By name

Source

self-made

Date

March 05, 2008

Author

dino (talk)

Permission
(Reusing this image)

See below.

[edit] Licensing

I made this with SAGE; code follows:


# Five-petaled epitrochoid via splining the points:
# Draw an epitrochoid, fixed circle radius R, rotating circle
# of radius r, pen at distance d from center of rotating circle.

R=5; r=2; d=3; rotations = ((R+r)/r).denom(); v = []; step = 0.2
for t in srange(0, 2*pi*rotations, step):
  v.append(((R+r)*cos(t)-d*cos(((R+r)/r)*t),(R+r)*sin(t)-d*sin(((R+r)/r)*t)))
x_spline = spline([(RDF(i)/len(v), v[i][0]) for i in range(len(v))]+[(1,v[0][0])])
y_spline = spline([(RDF(i)/len(v), v[i][1]) for i in range(len(v))]+[(1,v[0][1])])
show(points(v, rgbcolor=(1,0,0), pointsize=10) + parametric_plot((x_spline, y_spline),0,1,thickness=0.5), figsize=[4,4] )

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current02:47, 6 March 2008400×400 (27 KB)Dino (Talk | contribs) ({{Information |Description=By name |Source=self-made |Date=March 05, 2008 |Location=Boulder, Colorado |Author=~~~ |other_versions= }})

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):