Skip to main content

Timeline for Graphing a spiral

Current License: CC BY-SA 4.0

3 events
when toggle format what by license comment
Mar 4, 2020 at 6:51 comment added slepic @alexyorke my solution puts stress on readability. Your solution is not at first glance obvious why that is the case. And unless the plot function can ignore the extra y coordinate, it is meaningless. And even if it could, it Is not very smart to rely on such behaviour.
Mar 4, 2020 at 4:01 comment added alexyorke Approaching code golf, but if N is fixed it could be written as N=100 x=[0] y=[0, 0] for u in range(1, N): x += [u, u, -u, -u] where x would also be y. The issue is that there is one too many elements at the end of y.
Mar 3, 2020 at 17:44 history answered slepic CC BY-SA 4.0