Big Float.Cos Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Cos( | Returns the cosine of an angle. |
Cos( | Returns the cosine of an angle with the specified accuracy. |
Cos( | Returns the cosine of an angle with the specified accuracy. |
Cos(BigFloat)
Returns the cosine of an angle.
public static BigFloat Cos(
BigFloat angle
)
Parameters
Return Value
BigFloatThe cosine of angle.
Implements
ITrigonometricFunctions<TSelf>.Cos(TSelf)Remarks
The result has the same relative accuracy as the absolute accuracy of angle.
Exceptions
Argument | angle is null. |
Cos(BigFloat, AccuracyGoal)
Returns the cosine of an angle with the specified accuracy.
public static BigFloat Cos(
BigFloat angle,
AccuracyGoal accuracyGoal
)
Parameters
- angle BigFloat
- A BigFloat value that specifies the angle in radians.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the desired accuracy of the result.
Return Value
BigFloatThe cosine of angle with an accuracy within accuracyGoal.
Exceptions
Argument | angle is null. |
Cos(BigFloat, AccuracyGoal, RoundingMode)
Returns the cosine of an angle with the specified accuracy.
public static BigFloat Cos(
BigFloat angle,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
Parameters
- angle BigFloat
- A BigFloat value that specifies the angle in radians.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the desired accuracy of the result.
- roundingMode RoundingMode
- A RoundingMode value that specifies how the result should be rounded.
Return Value
BigFloatThe cosine of angle with an accuracy within accuracyGoal.
Exceptions
Argument | angle is null. |