Skip to main content

Timeline for Calculate Landau's function

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Aug 31, 2019 at 3:43 comment added Joel Oh, you are right. I saw a warning about that in an earlier version of numpy. Maybe in the newer versions the behavior has changed.
Aug 31, 2019 at 3:39 comment added xnor @Joel While import* is no doubt bad practice, I don't think it actually overwrites Python's min and max, so the confusion would be someone expecting numpy's function and getting the base one.
Aug 31, 2019 at 3:34 comment added Joel Right. In that case I prefer to use import numpy because numpy.max would override Python's built-in max (same for min) if from numpy import* is used. It does not cause problems here but we all know that import* is not a good programming practice in general.
Aug 31, 2019 at 3:30 comment added xnor @Joel Thanks, I had forgotten to update the byte count, they're both 77. numpy's length of 5 is the break-even point for import*.
Aug 31, 2019 at 3:25 comment added xnor @Joel Thanks, I forgot about that.
Aug 31, 2019 at 3:24 history edited xnor CC BY-SA 4.0
deleted 10 characters in body
Aug 31, 2019 at 3:21 comment added Joel Using from math import* is 85 bytes and using import math + math.gcd(...) is 84 bytes. The same applies to numpy.
Aug 31, 2019 at 3:14 history answered xnor CC BY-SA 4.0