FunctionsHypotenuse(Double, Double) Method

Numerically stable hypotenuse of a right angle triangle.

Definition

Namespace: Austra.Library.Stats
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+d1268756e036101f601080f153b3997e72fc912d
C#
public static double Hypotenuse(
	double a,
	double b
)

Parameters

a  Double
The length of side a of the triangle.
b  Double
The length of side b of the triangle.

Return Value

Double
Returns sqrt(a^2 + b^2) without underflow/overflow.

See Also