Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
double hypo(double x, double y)
{
return Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2));
}
h = hypot(x,y)
hypo x y = sqrt $ x**2 + y**2
const h = Math.hypot(x, y);
var h = Math.sqrt(x*x + y*y);
return double h = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
local h = math.sqrt(x^2 + y^2)
local h=(x^2+y^2)^0.5
$h = hypot($x, $y)
// before PHP 4.1
$h = sqrt($x*$x + $y*$y);
let h = x.hypot(y);
fn hypot(x:f64, y:f64)-> f64 {
let num = x.powi(2) + y.powi(2);
num.powf(0.5)
}