Method Hypot
Hypot(BigRational, BigRational, Int32)
Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.
Declaration
public static BigRational Hypot(BigRational x, BigRational y, int digits)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The value to square and add to |
BigRational | y | The value to square and add to |
System.Int32 | digits | The maximum number of fractional decimal digits in the return value. |
Returns
Type | Description |
---|---|
BigRational | The square root of |
Hypot(BigRational, BigRational)
Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.
Declaration
public static BigRational Hypot(BigRational x, BigRational y)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The value to square and add to |
BigRational | y | The value to square and add to |
Returns
Type | Description |
---|---|
BigRational | The square root of |
Remarks
Part of the new NET 7 number type system see System.Numerics.IRootFunctions`1.Hypot(`0,`0).
The desired precision can preset by MaxDigits