taylor
Taylor series
Description
approximates T
= taylor(f
,var
)f
with the Taylor series expansion of f
up to the fifth order
at the point var = 0
. If you do not specify
var
, then taylor
uses the default
variable determined by symvar(f,1)
.
specifies options using one or more name-value arguments in addition to any of the
input argument combinations in previous syntaxes. For example, you can specify the
expansion point, truncation order, or order mode of the Taylor series
expansion.T
= taylor(___,Name=Value
)
Examples
Input Arguments
More About
Tips
If you use both the third argument
a
andExpansionPoint
to specify the expansion point, then the value specified byExpansionPoint
prevails.If
var
is a vector, then the expansion pointa
must be a scalar or a vector of the same length asvar
. Ifvar
is a vector anda
is a scalar, thena
is expanded into a vector of the same length asvar
with all elements equal toa
.If the expansion point is infinity or negative infinity, then
taylor
computes the Laurent series expansion, which is a power series in1/var
.You can use the
sympref
function to modify the output order of symbolic polynomials.If
taylor
cannot find the Taylor series expansion, then useseries
to find the more general Puiseux series expansion.
Version History
Introduced before R2006a