Method CosPi
CosPi(BigRational, Int32)
Computes the cosine of a value that has been multipled by pi.
Declaration
public static BigRational CosPi(BigRational x, int digits)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | x | The value, in half-revolutions, whose cosine is to be computed. |
| System.Int32 | digits | The maximum number of fractional decimal digits in the return value.digits |
Returns
| Type | Description |
|---|---|
| BigRational | The cosine of |
Remarks
This computes cos(x * π).
The desired precision can preset by MaxDigits
CosPi(BigRational)
Computes the cosine of a value that has been multipled by pi.
Declaration
public static BigRational CosPi(BigRational x)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | x | The value, in half-revolutions, whose cosine is to be computed. |
Returns
| Type | Description |
|---|---|
| BigRational | The cosine of |
Remarks
This computes cos(x * π).
Part of the new NET 7 number type system see System.Numerics.ITrigonometricFunctions`1.CosPi(`0).
The desired precision can preset by MaxDigits