hypot()
Table of Contents
Definition
hypot() calculates the hypotenuse of a right-angled triangle whose legs are X and Y. The function returns the square root of X2+Y2.
Examples
The following example calculates the hypotenuse for x=2 and y=4. The query returns 4.47213595499958 as the result.
| makeresults
| eval hypotenuse=hypot(2,4)