hypot(p1, p2)
public
Returns sqrt(x**2 + y**2), the hypotenuse of
a right-angled triangle with sides x and y.
Math.hypot(3, 4)
Show source
static VALUE
math_hypot(VALUE unused_obj, VALUE x, VALUE y)
{
return DBL2NUM(hypot(Get_Double(x), Get_Double(y)));
}