BigFloat.Cos Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Cos(BigFloat) Returns the cosine of an angle.
Cos(BigFloat, AccuracyGoal) Returns the cosine of an angle with the specified accuracy.
Cos(BigFloat, AccuracyGoal, RoundingMode) Returns the cosine of an angle with the specified accuracy.

BigFloat.Cos(BigFloat)

Returns the cosine of an angle.
C#
public static BigFloat Cos(
	BigFloat angle
)

Parameters

angle  BigFloat
A BigFloat value that specifies the angle in radians.

Return Value

BigFloat
The cosine of angle.

Remarks

The result has the same relative accuracy as the absolute accuracy of angle.

Exceptions

ArgumentNullExceptionangle is null.

BigFloat.Cos(BigFloat, AccuracyGoal)

Returns the cosine of an angle with the specified accuracy.
C#
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

BigFloat
The cosine of angle with an accuracy within accuracyGoal.

Exceptions

ArgumentNullExceptionangle is null.

BigFloat.Cos(BigFloat, AccuracyGoal, RoundingMode)

Returns the cosine of an angle with the specified accuracy.
C#
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

BigFloat
The cosine of angle with an accuracy within accuracyGoal.

Exceptions

ArgumentNullExceptionangle is null.

See Also