Name

hypot — return the Euclidean distance sqrt(x*x + y*y)

Synopsis

hypot( in x double precision,
  in y double precision);
 

Description

hypot returns the Euclidean distance sqrt(x*x + y*y), computed without undue overflow or underflow. The arguments are converted to IEEE 64-bit floats and the result is of that type.

Parameters

x

First leg of the right triangle, as double precision.

y

Second leg of the right triangle, as double precision.

Return Types

hypot returns a double precision value.

Examples

Example 24.527. Simple example

SQL> select hypot(3, 4);
unnamed
DOUBLE PRECISION NOT NULL
_______________________________________________________________________________

                        5

1 Rows. -- 0 msec.
      

See Also

sqrt, atan2


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®