Search⌘ K

Series Expansion

Explore how to use SymPy's series and fps functions to compute Taylor and formal power series expansions in symbolic computation. Understand how to specify expansion points, remove higher order terms, substitute values, and extract individual terms from series, enhancing your ability to model and analyze mathematical functions symbolically in Python.

Taylor series

SymPy expressions can be expanded as Taylor series using the series() function from the SymPy module.

Taylor series about x=ax=a is given by:

f(x)=n=0f(n)an!(xa)nf(x)=\sum_{n=0}^{\infty}\frac{f^{(n)}a}{n!}(x-a)^n ...