Click or drag to resize
Accord.NET (logo)

ToolsHypotenuse Method (Single, Single)

Hypotenuse calculus without overflow/underflow

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static float Hypotenuse(
	float a,
	float b
)
Request Example View Source

Parameters

a
Type: SystemSingle
first value
b
Type: SystemSingle
second value

Return Value

Type: Single
The hypotenuse Sqrt(a^2 + b^2)
See Also