Calculus & Numerical Methods
Taylor Series of cos x
Approximate cos x with n terms.
Formula
Formula
cos x ≈ Σ (−1)k x2k2k!
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| x | argument (radians) | real number (ℝ) | — | input |
| n | number of terms | integer (ℤ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenx = 1, terms n = 10
Result0.5403023059
Example 2
Givenx = 0.5, terms n = 8
Result0.8775825619