Jump to content

File:Splined epitrochoid.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 369 × 363 pixels, file size: 51 KB)

Summary

 
This diagram was created with SageMath.
Description

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 (UTC)
Source This file was derived from: Splined epitrochoid.png
Author


This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: Vectorized. The original can be viewed here: Splined epitrochoid.png.

Licensing

This work has been released into the public domain by its author, dino, at the English Wikipedia project. This applies worldwide.

In case this is not legally possible:
dino grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Original upload log

This image is a derivative work of the following images:

  • File:Splined_epitrochoid.png licensed with PD-user-w
    • 2010-07-25T20:52:50Z Aleksd 400x400 (27936 Bytes) {{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 rota

Uploaded with derivativeFX

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

29 January 2012

File history

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

Date/TimeThumbnailDimensionsUserComment
current08:28, 29 January 2012Thumbnail for version as of 08:28, 29 January 2012369 × 363 (51 KB)InverseHypercubeproper domain and ticks
08:20, 29 January 2012Thumbnail for version as of 08:20, 29 January 2012366 × 373 (41 KB)InverseHypercube== {{int:filedesc}} == {{Information |Description=Made with Sage; code is as follows: <source lang="python"> # Five-petaled epitrochoid via splining the points: # Draw an epitrochoid, fixed circle radius R, rotating circle # of radius r, pen at distance

The following page uses this file:

Global file usage

The following other wikis use this file: