On Wed, Jan 21, 2009 at 07:45:08AM -0800, Ian Mallett wrote: > math.hypot() is good for distance calculation. I did some microbenchmarks a while ago, and math.hypot() was faster than x**2 + y**2. I was surprised. Still, avoiding O(n**2) algorithms would be best. Marius Gedminas -- Anything can be made to work if you fiddle with it long enough.
Attachment:
signature.asc
Description: Digital signature