Calculus & Numerical Methods

Taylor Series of cos x

Approximate cos x with n terms.

Formula

Formula
cos x ≈ Σ (−1)k x2k2k!

Variables

SymbolDefinitionType & rangeUnitsRole
x argument (radians) real number (ℝ) input
n number of terms integer (ℤ) input

Try it yourself

Interactive calculator
Result

Worked examples

Example 1
Givenx = 1, terms n = 10
Result0.5403023059
Example 2
Givenx = 0.5, terms n = 8
Result0.8775825619