Subject: [ruby-talk:12404] Re: Math package
From: ts <decoux moulon.inra.fr>
Date: Sun, 11 Mar 2001 18:15:36 +0900
References:
In-reply-to: message from Mathieu Bouchard on Sun, 11 Mar 2001 03:39:37 +0900
>>>>> "M" == Mathieu Bouchard <matju / sympatico.ca> 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