Computes the length of a right triangle's hypotenuse.
Namespace:
Meta.Numerics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double Hypot(
double x,
double y
)
Public Shared Function Hypot (
x As Double,
y As Double
) As Double
public:
static double Hypot(
double x,
double y
)
static member Hypot :
x : float *
y : float -> float
Parameters
- x
- Type: SystemDouble
The length of one side. - y
- Type: SystemDouble
The length of another side.
Return Value
Type:
DoubleThe value of sqrt(x
2 + y
2).
Remarks The length is computed accurately, even in cases where
x2 or y2 would overflow or underflow.
See Also