Back to Symbolic Mathematics
taylor
Taylor series expansion
Syntax
T = taylor(f, x) T = taylor(f, x, a) T = taylor(f, x, a, n)
Description
Computes the Taylor series expansion of f around the point a (default 0). Returns a polynomial approximation with n terms (default 6). The result is a symbolic polynomial representing the truncated Taylor series.
Parameters
| Name | Description |
|---|---|
| f | Symbolic expression to expand |
| x | Expansion variable |
| a(optional) | Expansion point (default: 0) |
| n(optional) | Number of terms (default: 6) |
Returns
Taylor polynomial