Timeline for Collatz's ice cream cone factory
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 12, 2021 at 7:07 | history | edited | Razetime | CC BY-SA 4.0 |
added 14 characters in body
|
Jun 12, 2021 at 6:26 | comment | added | user100690 | Remove the space between while and ~. Maybe [[k,*r],r]? | |
Jun 12, 2021 at 5:47 | comment | added | Wasif | @ovs thanks for the tips!! | |
Jun 12, 2021 at 5:46 | comment | added | ovs |
And pyplot.plot can take x and y coordinates separately, so p.plot([k]+r,r[:-1],'-o') should work (I didn't test that)
|
|
Jun 12, 2021 at 5:43 | history | edited | Wasif | CC BY-SA 4.0 |
added 11 characters in body
|
Jun 12, 2021 at 5:42 | comment | added | ovs |
If you use n//2 instead of n/2 , you don't need to convert n%2 to an integer and the loop condition can be changed to ~-n .
|
|
Jun 12, 2021 at 3:14 | history | edited | Wasif | CC BY-SA 4.0 |
deleted 10 characters in body
|
Jun 12, 2021 at 2:25 | history | edited | Wasif | CC BY-SA 4.0 |
added 13 characters in body
|
Jun 12, 2021 at 1:41 | history | edited | Wasif | CC BY-SA 4.0 |
added 33 characters in body
|
Jun 12, 2021 at 1:29 | history | answered | Wasif | CC BY-SA 4.0 |