Commit 90b29ae5 authored by Thomas Levine's avatar Thomas Levine
Browse files

size

parent a4a8c20d
......@@ -97,7 +97,7 @@ def two():
p(xs, lambda angle: 0.1 + 0.7 * math.cos(angle/rotations))
def spiral(xmin, ymin, xmax, ymax, rotations):
def spiral(xmin, ymin, xmax, ymax, max_rotations, rotations):
all_coordinates = xmin, ymin, xmax, ymax
f = lambda a: a / rotations / (2 * math.pi)
f = lambda a: a / max_rotations / (2 * math.pi)
return compose_centered_plot(all_coordinates, angles(180, rotations), f)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment