Click or drag to resize
Accord.NET (logo)

TaylorCos Method

Returns the cosine of a specified angle by evaluating a Taylor series.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Cos(
	double x,
	int nTerms
)
Request Example View Source

Parameters

x
Type: SystemDouble
An angle, measured in radians.
nTerms
Type: SystemInt32
The number of terms to be evaluated.

Return Value

Type: Double
The cosine of the angle x.
See Also