How do sine and cosine power series calculate values for angles?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In calculus, the sine and cosine functions can be expressed as infinite power series, which allow for the calculation of their values for any angle. To use these series, the angle must first be expressed in radians.123

The power series (specifically Maclaurin series) for these functions are:

  • Sine: sinx=x−x33!+x55!−x77!+…32
  • Cosine: cosx=1−x22!+x44!−x66!+…24

In these formulas, the exclamation point denotes the factorial function (e.g., 3!=3×2×1=6). These series converge for all real numbers x, meaning that by calculating a sufficient number of terms, one can achieve any desired level of decimal precision for the sine or cosine of an angle. For example, substituting the radian equivalent of an angle into the series and summing the initial terms provides a highly accurate approximation of the function's value.321