Click or drag to resize
Accord.NET (logo)

ToolsHypotenuse Method (Double, Double)

Hypotenuse calculus without overflow/underflow

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

Parameters

a
Type: SystemDouble
First value
b
Type: SystemDouble
Second value

Return Value

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