def hypot(x, y):
if isinstance(x, UncertainFunction) or isinstance(x, UncertainFunction):<EOL><INDENT>ufx = to_uncertain_func(x)<EOL>ufy = to_uncertain_func(y)<EOL>mcpts = np.hypot(ufx._mcpts, ufy._mcpts)<EOL>return UncertainFunction(mcpts)<EOL><DEDENT>else:<EOL><INDENT>return np.hypot(x, y)<EOL><DEDENT>
Calculate the hypotenuse given two "legs" of a right triangle