Method Cos
Cos(BigRational, Int32)
Returns the cosine of the specified angle.
Declaration
public static BigRational Cos(BigRational x, int digits)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | x | An angle, measured in radians. |
| System.Int32 | digits | The maximum number of fractional decimal digits in the return value. |
Returns
| Type | Description |
|---|---|
| BigRational | The cosine of |
Remarks
Note: In the current version, the function has not yet been finally optimized for performance
and the accuracy of the last digits has not yet been ensured!
Cos(BigRational)
Computes the cosine of a value.
Declaration
public static BigRational Cos(BigRational x)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | x | The value, in radians, 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.Cos(`0).
The desired precision can preset by MaxDigits