Go to: Synopsis. Return value. MEL examples.

Synopsis

hypot float float

hypot is NOT undoable, NOT queryable, and NOT editable.

This command is implemented using the builtin system function.

Let the input arguments be x and y, respectively. hypot(x,y) return sqrt(x*x+y*y) computed in such a way that overflow will not happen, and underflow occurs only if the final result deserves it.

Return value

floatHypotenuse value

MEL examples

hypot 3 4;
// Result:, 5 //