Click or drag to resize
Accord.NET (logo)

ToolsHypotenuse Method (Decimal, Decimal)

Hypotenuse calculus without overflow/underflow

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

Parameters

a
Type: SystemDecimal
first value
b
Type: SystemDecimal
second value

Return Value

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