From: ts Date: 2001-03-11T18:15:36+09:00 Subject: [ruby-talk:12404] Re: Math package >>>>> "M" == Mathieu Bouchard writes: M> but I don't know what hypot(...) is supposed to be... (is it just M> (x*x+y*y)**.5 ?) x = abs(x) y = abs(y) h = max(x, y) * sqrt(1 + (min(x, y) / max(x, y)) ** 2) it's in GSL Guy Decoux