Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
relearn
2014
Commits
90b29ae5
Commit
90b29ae5
authored
Jul 11, 2014
by
Thomas Levine
Browse files
size
parent
a4a8c20d
Changes
1
Hide whitespace changes
Inline
Side-by-side
circles/polar/polar.py
View file @
90b29ae5
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment