File:Splined epitrochoid.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Splined_epitrochoid.png (400 × 400 pixels, file size: 27 KB, MIME type: image/png)
File information
Structured data
Captions
File:Splined epitrochoid.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.
File:Splined epitrochoid.png → File:Splined epitrochoid.svg
For more information, see Help:SVG.
|
This diagram was created with SageMath.
DescriptionSplined epitrochoid.png |
made with Sage; code is as 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), (x, 0, 1), thickness=0.5),
figsize=[4, 4], ticks=[2.5, 2.5], xmin=-10)
|
|||
Date | ||||
Source | en.wikipedia.org | |||
Author | dino | |||
Permission (Reusing this file) |
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:52, 25 July 2010 | 400 × 400 (27 KB) | Aleksd~commonswiki (talk | contribs) | {{Information |Description=made 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; r |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on bg.wikipedia.org
- Usage on en.wikipedia.org
- Usage on ta.wikipedia.org
- Usage on ur.wikipedia.org