Function Block HYPOT

The Function Block HYPOT calculates the length of the hypotenuse of a right triangle.

Inputs

Each input expects a value with a number. The value is attempted to be converted from a string into a number. The boolean value TRUE is converted into a 1.

Note: See also the article String Conversion to Numbers, if you are working with strings.

Output

The output returns the length of the hypotenuse of a right triangle from the lengths of both legs or the distance of a point (x,y) from the origin. This corresponds to sqrt(x*x + y*y).