Click or drag to resize

SpecialFunctionsHypotenuse(Single, Single) Method

Numerically stable hypotenuse of a right angle triangle, i.e. (a,b) -> sqrt(a^2 + b^2)

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static float Hypotenuse(
	float a,
	float b
)

Parameters

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

Return Value

Single
Returns sqrt(a2 + b2) without underflow/overflow.
See Also