Quad.Hypot Method

Gets the length of the hypotenuse of a right-angled triangle with sides of specified length.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static Quad Hypot(
	Quad a,
	Quad b
)

Parameters

a  Quad
The length of the first side.
b  Quad
The length of the second side.

Return Value

Quad
The length of the hypotenuse.

Implements

IRootFunctions<TSelf>.Hypot(TSelf, TSelf)

Remarks

The calculation of the hypotenuse involves squaring the arguments. Unless special precautions are taken, an overflow may occur during the calculations even if the result is within acceptable bounds.

See Also