Method Sqrt
Sqrt(BigRational, Int32)
Returns the square root of a specified number.
Declaration
public static BigRational Sqrt(BigRational a, int digits)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | a | The number whose square root is to be found. |
| System.Int32 | digits | The maximum number of fractional decimal digits in the return value. |
Returns
| Type | Description |
|---|---|
| BigRational | Zero or positive – The positive square root of |
Remarks
For fractional roots, the result is rounded to the specified number of decimal places.
Sqrt(BigRational)
Computes the square-root of a value.
Declaration
public static BigRational Sqrt(BigRational x)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | x | The value whose square-root is to be computed. |
Returns
| Type | Description |
|---|---|
| BigRational | The square-root of |
Remarks
Part of the new NET 7 number type system see System.Numerics.IRootFunctions`1.Sqrt(`0).
The desired precision can preset by MaxDigits